Use monkeypatch in test_pytest_version_env_var

Follow up to #12190
This commit is contained in:
dj 2024-04-19 07:35:29 +05:30 committed by GitHub
parent 48b6d18834
commit ad95d59d61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1097,7 +1097,7 @@ def test_outcome_exception_bad_msg() -> None:
def test_pytest_version_env_var(pytester: Pytester, monkeypatch: MonkeyPatch) -> None: def test_pytest_version_env_var(pytester: Pytester, monkeypatch: MonkeyPatch) -> None:
os.environ["PYTEST_VERSION"] = "old version" monkeypatch.setenv("PYTEST_VERSION", "old version")
pytester.makepyfile( pytester.makepyfile(
""" """
import pytest import pytest