Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/12647.contrib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed running the test suite with the ``hypothesis`` pytest plugin.
2 changes: 2 additions & 0 deletions testing/test_helpconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

def test_version_verbose(pytester: Pytester, pytestconfig, monkeypatch) -> None:
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
monkeypatch.delenv("PYTEST_PLUGINS", raising=False)
result = pytester.runpytest("--version", "--version")
assert result.ret == 0
result.stdout.fnmatch_lines([f"*pytest*{pytest.__version__}*imported from*"])
Expand All @@ -17,6 +18,7 @@ def test_version_verbose(pytester: Pytester, pytestconfig, monkeypatch) -> None:

def test_version_less_verbose(pytester: Pytester, pytestconfig, monkeypatch) -> None:
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
monkeypatch.delenv("PYTEST_PLUGINS", raising=False)
result = pytester.runpytest("--version")
assert result.ret == 0
result.stdout.fnmatch_lines([f"pytest {pytest.__version__}"])
Expand Down
1 change: 1 addition & 0 deletions testing/test_terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ def test_header_trailer_info(
self, monkeypatch: MonkeyPatch, pytester: Pytester, request
) -> None:
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
monkeypatch.delenv("PYTEST_PLUGINS", raising=False)
pytester.makepyfile(
"""
def test_passes():
Expand Down