summaryrefslogtreecommitdiff
path: root/testing/test_doctest.py
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-06-25 14:05:46 +0300
committerRan Benita <ran@unusedvar.com>2020-06-25 14:05:46 +0300
commitf00bec2a12a585eee245284c8eac86edc27e661f (patch)
treee456ef5ea5f7bcc3ae42060a9d7508e00529597f /testing/test_doctest.py
parentd69e9e60d6c2ce530cac7b372165b42f33153df0 (diff)
downloadpytest-f00bec2a12a585eee245284c8eac86edc27e661f.tar.gz
Replace yield_fixture -> fixture in internal code
`yield_fixture` is a deprecated alias to `fixture`.
Diffstat (limited to 'testing/test_doctest.py')
-rw-r--r--testing/test_doctest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/test_doctest.py b/testing/test_doctest.py
index 2b98b5267..9ef9417cd 100644
--- a/testing/test_doctest.py
+++ b/testing/test_doctest.py
@@ -1176,7 +1176,7 @@ class TestDoctestAutoUseFixtures:
import pytest
import sys
- @pytest.yield_fixture(autouse=True, scope='session')
+ @pytest.fixture(autouse=True, scope='session')
def myfixture():
assert not hasattr(sys, 'pytest_session_data')
sys.pytest_session_data = 1