Skip to content

Commit 18ab13a

Browse files
committed
Tests fixed that are not successful for specific plugins.
For example for _hypothesis_pytestplugin. Fixes pytest-dev#12647
1 parent e34fc62 commit 18ab13a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

testing/test_helpconfig.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

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

1819
def test_version_less_verbose(pytester: Pytester, pytestconfig, monkeypatch) -> None:
1920
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
21+
monkeypatch.delenv("PYTEST_PLUGINS", raising=False)
2022
result = pytester.runpytest("--version")
2123
assert result.ret == 0
2224
result.stdout.fnmatch_lines([f"pytest {pytest.__version__}"])

testing/test_terminal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,7 @@ def test_header_trailer_info(
859859
self, monkeypatch: MonkeyPatch, pytester: Pytester, request
860860
) -> None:
861861
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
862+
monkeypatch.delenv("PYTEST_PLUGINS", raising=False)
862863
pytester.makepyfile(
863864
"""
864865
def test_passes():

0 commit comments

Comments
 (0)