diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-02-02 12:59:30 +0300 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-02-09 19:17:14 +0300 |
commit | d299e8854d8ffcea39aa93e6c807bdb93a0821ae (patch) | |
tree | 0fc7c5a9ceb08ce19367c0fed8a9d589a650df53 /contrib/python/hypothesis/py3/_hypothesis_globals.py | |
parent | 2294e1cc7147afff7407d26b0ab809b5dab8f8b8 (diff) | |
download | ydb-d299e8854d8ffcea39aa93e6c807bdb93a0821ae.tar.gz |
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 e97e091879..1f3eb6fd6d 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 |