Skip to content

Commit 79064a6

Browse files
authored
Apply suggestions from code review
1 parent 3adc880 commit 79064a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

changelog/12153.doc.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Updated docs: Documented new way to detect if a code is running from within a pytest run
1+
Documented using :envvar:`PYTEST_VERSION` to detect if code is running from within a pytest run.

doc/en/example/simple.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,10 @@ running from a test you can do this:
413413
414414
415415
if os.environ.get("PYTEST_VERSION") is not None:
416-
# things you want to to do if your code is called by pytest
416+
# Things you want to to do if your code is called by pytest.
417417
...
418418
else:
419-
# things you want to to do if your code is not called by pytest
419+
# Things you want to to do if your code is not called by pytest.
420420
...
421421
422422

0 commit comments

Comments
 (0)