File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 20
20
21
21
import pytest
22
22
23
+ from hypothesis ._settings import is_in_ci
23
24
from hypothesis .internal .detection import is_hypothesis_test
24
25
25
26
from tests .common import TIME_INCREMENT
@@ -96,6 +97,12 @@ def pytest_runtest_call(item):
96
97
# See: https://github.com/HypothesisWorks/hypothesis/issues/1919
97
98
if not (hasattr (item , "obj" ) and is_hypothesis_test (item .obj )):
98
99
yield
100
+ elif "pytest_randomly" in sys .modules :
101
+ # See https://github.com/HypothesisWorks/hypothesis/issues/3041 - this
102
+ # branch exists to make it easier on external contributors, but should
103
+ # never run in our CI (because that would disable the check entirely).
104
+ assert not is_in_ci ()
105
+ yield
99
106
else :
100
107
# We start by peturbing the state of the PRNG, because repeatedly
101
108
# leaking PRNG state resets state_after to the (previously leaked)
You can’t perform that action at this time.
0 commit comments