diff --git a/tests/unittests/conftest.py b/tests/unittests/conftest.py index be3afe2ce12d..6b9fc9fbde0d 100644 --- a/tests/unittests/conftest.py +++ b/tests/unittests/conftest.py @@ -8,10 +8,10 @@ } try: for name, kwargs in _hypothesis_profiles.items(): - settings.register_profile(name, **kwargs) + settings.register_profile(name, parent=None, **kwargs) except TypeError: # Drop except when hypothesis>=3.47 # https://hypothesis.readthedocs.io/en/latest/changes.html#v3-47-0 for name, kwargs in _hypothesis_profiles.items(): - settings.register_profile(name, settings(**kwargs)) + settings.register_profile(name, settings(**kwargs)) # type: ignore settings.load_profile(os.getenv("HYPOTHESIS_PROFILE", "default")) diff --git a/tox.ini b/tox.ini index b0d5119ef5a7..b4fcc2d94e62 100644 --- a/tox.ini +++ b/tox.ini @@ -138,6 +138,7 @@ deps = {[lowest-supported-deps]deps} httpretty==0.8.14 commands = {[testenv:py3]commands} +passenv = HYPOTHESIS_PROFILE [testenv:lowest-supported-dev] # The oldest httpretty version to work with Python 3.7+ is 0.9.5, @@ -147,6 +148,7 @@ deps = {[lowest-supported-deps]deps} httpretty==0.9.5 commands = {[testenv:py3]commands} +passenv = HYPOTHESIS_PROFILE [testenv:doc] deps =