test_ok2/doc/en
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
..
_templates fix line endings 2018-05-23 16:45:23 +02:00
_themes Apply reorder-python-imports to all files 2018-10-25 00:01:29 -07:00
announce Prepare release 4.3.1 2019-03-11 12:59:54 -03:00
example Prepare release 4.3.1 2019-03-11 12:59:54 -03:00
img - preliminary sprint page, not yet linked through the header 2016-02-05 11:34:40 +01:00
proposals Spelling and grammar fixes 2018-10-29 23:45:45 +02:00
Makefile Fix typo in Makefile: PYTEST_ADDOPT -> PYTEST_ADDOPTS 2019-01-05 20:31:01 +00:00
adopt.rst docs warnings as errors and initial page similar to README 2016-08-26 17:47:18 -03:00
assert.rst Apply suggestions from code review 2019-02-27 07:46:03 -03:00
backwards-compatibility.rst [WIP] Introduce deprecations page 2018-09-18 20:56:40 -03:00
bash-completion.rst Fix sphinx code-block types for remaining rst docs 2019-02-15 15:10:37 +02:00
builtin.rst Preparing release version 4.1.0 2019-01-05 16:38:59 -02:00
cache.rst Fix docs (tox -e regen, plus pre-commit) 2019-02-18 18:46:03 +01:00
capture.rst Fix sphinx code-block types for remaining rst docs 2019-02-15 15:10:37 +02:00
changelog.rst Add a changelog blurb and title, similar to tox 2018-08-04 13:15:20 -03:00
conf.py Remove deprecated Sphinx directive add_description_unit() 2019-03-14 12:16:59 +01:00
conftest.py added "docs/en" directory and moved 2012-06-06 08:52:53 +09:00
contact.rst apply most other hooks and opt out of black reformating 2018-05-23 16:45:58 +02:00
contents.rst Add docs page about plans for dropping py27 and py34 2019-01-14 22:10:15 -02:00
contributing.rst Updated documentation from txt to rst 2015-08-04 16:41:02 +05:30
customize.rst Update wording about [tool:pytest] in setup.cfg files 2019-02-23 15:32:42 -03:00
deprecations.rst Improve pytest.raises 'message' deprecation docs 2019-01-24 20:41:18 -02:00
development_guide.rst Manage GH labels using the new 'labels' tool 2018-07-14 10:12:52 -03:00
doctest.rst Revert '$' changes to not trigger regendoc 2019-02-15 14:09:37 +02:00
existingtestsuite.rst Fix links in docs 2017-04-06 23:29:41 -03:00
faq.rst Update all pypi.python.org URLs to pypi.org 2018-04-26 06:49:33 -07:00
fixture.rst Fix sphinx code-block types for remaining rst docs 2019-02-15 15:10:37 +02:00
flaky.rst Fix linting2 2018-10-31 11:05:58 -03:00
funcarg_compare.rst Fix formatting of print() calls 2018-11-22 00:15:14 -08:00
funcargs.rst fix line endings 2018-05-23 16:45:23 +02:00
getting-started.rst Fix sphinx code-block types for remaining rst docs 2019-02-15 15:10:37 +02:00
goodpractices.rst Fix docs about pytest conventions for test functions 2019-02-23 15:22:27 -03:00
historical-notes.rst Show deprecation warnings for compat properties 2018-09-13 14:10:30 -03:00
index.rst Preparing release version 4.2.0 2019-01-30 14:25:38 -02:00
license.rst Fix sphinx code-block types for remaining rst docs 2019-02-15 15:10:37 +02:00
links.inc update links.inc to include both venv and virtualenv 2019-02-21 10:41:59 -05:00
logging.rst Merge pull request #4783 from gyermolenko/fix_syntax_highlighting_for_two_rst_docs 2019-02-20 06:31:10 +11:00
mark.rst Clarify docs on --strict marks 2019-02-25 22:30:49 +11:00
monkeypatch.rst blacken docs 2018-06-03 07:58:46 -07:00
naming20.rst Updated documentation from txt to rst 2015-08-04 16:41:02 +05:30
nose.rst Fix sphinx code-block types for remaining rst docs 2019-02-15 15:10:37 +02:00
parametrize.rst Fix sphinx code-block types for remaining rst docs 2019-02-15 15:10:37 +02:00
plugins.rst Merge pull request #4735 from kohr-h/pytest_plugins_module_name 2019-02-07 07:07:58 +01:00
projects.rst Update all pypi.python.org URLs to pypi.org 2018-04-26 06:49:33 -07:00
py27-py34-deprecation.rst Add docs page about plans for dropping py27 and py34 2019-01-14 22:10:15 -02:00
pytest.ini added "docs/en" directory and moved 2012-06-06 08:52:53 +09:00
pythonpath.rst Add documentation about python -m pytest invocation. 2017-10-18 21:30:56 +02:00
recwarn.rst Add docs for the warnings functionality 2017-03-20 23:35:01 -03:00
reference.rst Fix pytestmark syntax in reference.rst 2019-03-21 15:14:28 -04:00
requirements.txt Pin sphinx-removed-in to >= 0.2.0 to support Sphinx 2.0 2019-03-15 10:56:13 +01:00
skipping.rst Fix sphinx code-block types for remaining rst docs 2019-02-15 15:10:37 +02:00
talks.rst Add good talk by Andrew Svetlov 2019-02-15 15:37:18 +02:00
tmpdir.rst Prepare release 4.3.1 2019-03-11 12:59:54 -03:00
unittest.rst Preparing release version 4.2.0 2019-01-30 14:25:38 -02:00
usage.rst Fix sphinx code-block types for remaining rst docs 2019-02-15 15:10:37 +02:00
warnings.rst Fix linting and change False to True as requested in review 2019-02-05 19:04:26 -02:00
writing_plugins.rst Preparing release version 4.2.0 2019-01-30 14:25:38 -02:00
xunit_setup.rst xunit-style functions and methods are invoked by autouse fixtures 2019-01-10 12:10:04 -02:00
yieldfixture.rst docs warnings as errors and initial page similar to README 2016-08-26 17:47:18 -03:00