We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3adc880 commit 79064a6Copy full SHA for 79064a6
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