From 99cf3cbd331e03750e1a251d36d1849dc59b427e Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 16 Oct 2021 08:16:38 -0400 Subject: feat: `coverage run` now sets the COVERAGE_RUN environment variable --- doc/cmd.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/cmd.rst b/doc/cmd.rst index b4bf41ab..1a54043d 100644 --- a/doc/cmd.rst +++ b/doc/cmd.rst @@ -137,6 +137,10 @@ If your coverage results seem to be overlooking code that you know has been executed, try running coverage.py again with the ``--timid`` flag. This uses a simpler but slower trace method, and might be needed in rare cases. +Coverage.py sets an environment variable, ``COVERAGE_RUN`` to indicate that +your code is running under coverage measurement. The value is not relevant, +and may change in the future. + .. _cmd_warnings: -- cgit v1.2.1