Skip to content

Commit

Permalink
Use monkeypatch in test_pytest_version_env_var
Browse files Browse the repository at this point in the history
Follow up to #12190
  • Loading branch information
dheerajck authored Apr 19, 2024
1 parent 48b6d18 commit ad95d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ def func() -> 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(
"""
import pytest
Expand Down

0 comments on commit ad95d59

Please sign in to comment.