Merge pull request #7213 from hrichards/clarify_docs_on_nose_yield-based_tests

This commit is contained in:
Zac Hatfield-Dodds 2020-05-13 12:38:45 +10:00 committed by GitHub
commit 6df0b9c41a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -26,7 +26,6 @@ Supported nose Idioms
* setup and teardown at module/class/method level
* SkipTest exceptions and markers
* setup/teardown decorators
* ``yield``-based tests and their setup (considered deprecated as of pytest 3.0)
* ``__test__`` attribute on modules/classes/functions
* general usage of nose utilities
@ -65,10 +64,8 @@ Unsupported idioms / known issues
- no nose-configuration is recognized.
- ``yield``-based methods don't support ``setup`` properly because
the ``setup`` method is always called in the same class instance.
There are no plans to fix this currently because ``yield``-tests
are deprecated in pytest 3.0, with ``pytest.mark.parametrize``
being the recommended alternative.
- ``yield``-based methods are unsupported as of pytest 4.1.0. They are
fundamentally incompatible with pytest because they don't support fixtures
properly since collection and test execution are separated.
.. _nose: https://nose.readthedocs.io/en/latest/