Brian Skinn
dcbdcc729b
Fix pytestmark syntax in reference.rst
pytest 4.3.1 throws an error if `pytestmark` is set to a tuple of marks; it appears to insist on a list.
With `pytestmark = [pytest.mark.api, pytest.mark.good]`:
```
============================== test session starts ==============================
platform win32 -- Python 3.6.3, pytest-4.3.1, py-1.8.0, pluggy-0.9.0
rootdir: C:\Temp\git\sphobjinv, inifile: tox.ini
plugins: timeout-1.3.3
collected 48 items / 41 deselected / 7 selected
tests\test_api_good.py ....... [100%]
==================== 7 passed, 41 deselected in 0.15 seconds ====================
```
With `pytestmark = (pytest.mark.api, pytest.mark.good)`:
```
==================================== ERRORS =====================================
____________________ ERROR collecting tests/test_api_good.py ____________________
env\lib\site-packages\_pytest\runner.py:226: in from_call
result = func()
env\lib\site-packages\_pytest\runner.py:289: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
env\lib\site-packages\_pytest\python.py:435: in collect
self._inject_setup_module_fixture()
env\lib\site-packages\_pytest\python.py:447: in _inject_setup_module_fixture
setup_module = _get_non_fixture_func(self.obj, "setUpModule")
env\lib\site-packages\_pytest\python.py:255: in obj
self.own_markers.extend(get_unpacked_marks(self.obj))
env\lib\site-packages\_pytest\mark\structures.py:244: in get_unpacked_marks
return normalize_mark_list(mark_list)
env\lib\site-packages\_pytest\mark\structures.py:259: in normalize_mark_list
raise TypeError("got {!r} instead of Mark".format(mark))
E TypeError: got (MarkDecorator(mark=Mark(name='api', args=(), kwargs={})), MarkDecorator(mark=Mark(name='good', args=(), kwargs={}))) instead of Mark
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
==================== 19 deselected, 1 error in 0.27 seconds =====================
```
2019-03-21 15:14:28 -04:00
..
2018-05-23 16:45:23 +02:00
2018-10-25 00:01:29 -07:00
2019-03-11 12:59:54 -03:00
2019-03-11 12:59:54 -03:00
2016-02-05 11:34:40 +01:00
2018-10-29 23:45:45 +02:00
2016-08-26 17:47:18 -03:00
2019-02-27 07:46:03 -03:00
2018-09-18 20:56:40 -03:00
2019-02-15 15:10:37 +02:00
2019-01-05 16:38:59 -02:00
2019-02-18 18:46:03 +01:00
2019-02-15 15:10:37 +02:00
2018-08-04 13:15:20 -03:00
2019-03-14 12:16:59 +01:00
2012-06-06 08:52:53 +09:00
2018-05-23 16:45:58 +02:00
2019-01-14 22:10:15 -02:00
2015-08-04 16:41:02 +05:30
2019-02-23 15:32:42 -03:00
2019-01-24 20:41:18 -02:00
2018-07-14 10:12:52 -03:00
2019-02-15 14:09:37 +02:00
2017-04-06 23:29:41 -03:00
2018-04-26 06:49:33 -07:00
2019-02-15 15:10:37 +02:00
2018-10-31 11:05:58 -03:00
2018-11-22 00:15:14 -08:00
2018-05-23 16:45:23 +02:00
2019-02-15 15:10:37 +02:00
2019-02-23 15:22:27 -03:00
2018-09-13 14:10:30 -03:00
2019-01-30 14:25:38 -02:00
2019-02-15 15:10:37 +02:00
2019-02-21 10:41:59 -05:00
2019-02-20 06:31:10 +11:00
2019-01-05 20:31:01 +00:00
2019-02-25 22:30:49 +11:00
2018-06-03 07:58:46 -07:00
2015-08-04 16:41:02 +05:30
2019-02-15 15:10:37 +02:00
2019-02-15 15:10:37 +02:00
2019-02-07 07:07:58 +01:00
2018-04-26 06:49:33 -07:00
2019-01-14 22:10:15 -02:00
2012-06-06 08:52:53 +09:00
2017-10-18 21:30:56 +02:00
2017-03-20 23:35:01 -03:00
2019-03-21 15:14:28 -04:00
2019-03-15 10:56:13 +01:00
2019-02-15 15:10:37 +02:00
2019-02-15 15:37:18 +02:00
2019-03-11 12:59:54 -03:00
2019-01-30 14:25:38 -02:00
2019-02-15 15:10:37 +02:00
2019-02-05 19:04:26 -02:00
2019-01-30 14:25:38 -02:00
2019-01-10 12:10:04 -02:00
2016-08-26 17:47:18 -03:00