diff options
| author | robot-piglet <[email protected]> | 2024-02-02 12:59:30 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2024-02-02 13:19:24 +0300 |
| commit | 8319f36af9daf8a45767bcdf088aa257d6258083 (patch) | |
| tree | 2a030e3466e9cf3eed7f3ebb11163ee3b0577d48 /contrib/python/hypothesis/py3/_hypothesis_globals.py | |
| parent | 1f22973dc28fb6b54a1e0827cae6f5dec464945b (diff) | |
Intermediate changes
Diffstat (limited to 'contrib/python/hypothesis/py3/_hypothesis_globals.py')
| -rw-r--r-- | contrib/python/hypothesis/py3/_hypothesis_globals.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/python/hypothesis/py3/_hypothesis_globals.py b/contrib/python/hypothesis/py3/_hypothesis_globals.py index e97e0918795..1f3eb6fd6d7 100644 --- a/contrib/python/hypothesis/py3/_hypothesis_globals.py +++ b/contrib/python/hypothesis/py3/_hypothesis_globals.py @@ -16,9 +16,9 @@ depending on either. This file should have no imports outside of stdlib. import os in_initialization = 1 -"""If nonzero, indicates that hypothesis is still initializing (importing or loading +"""If >0, indicates that hypothesis is still initializing (importing or loading the test environment). `import hypothesis` will cause this number to be decremented, -and the pytest plugin increments at load time, then decrements it just before the test +and the pytest plugin increments at load time, then decrements it just before each test session starts. However, this leads to a hole in coverage if another pytest plugin imports hypothesis before our plugin is loaded. HYPOTHESIS_EXTEND_INITIALIZATION may be set to pre-increment the value on behalf of _hypothesis_pytestplugin, plugging the |
