Skip to content

Commit 73f7b60

Browse files
committed
fix test for new pytest version
1 parent 6a116df commit 73f7b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pytest_icdiff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_one():
5151
"""
5252
)
5353
# Force colorization in py TerminalWriter
54-
testdir._env_run_update['PY_COLORS'] = '1'
54+
testdir.monkeypatch.setenv('PY_COLORS', '1')
5555
output = testdir.runpytest().stdout.str()
5656
print(repr(output))
5757
two_left = f"'the number t{YELLOW_ON}wo{COLOR_OFF}'"

0 commit comments

Comments
 (0)