We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dacba6 commit 1b1ae30Copy full SHA for 1b1ae30
changelog/12153.doc.rst
@@ -1 +1 @@
1
-Updated docs: Documented new way to detect if a code is running from within a pytest run
+Documented using :envvar:`PYTEST_VERSION` to detect if code is running from within a pytest run.
doc/en/example/simple.rst
@@ -413,10 +413,10 @@ running from a test you can do this:
413
414
415
if os.environ.get("PYTEST_VERSION") is not None:
416
- # things you want to to do if your code is called by pytest
+ # Things you want to to do if your code is called by pytest.
417
...
418
else:
419
- # things you want to to do if your code is not called by pytest
+ # Things you want to to do if your code is not called by pytest.
420
421
422
0 commit comments