Skip to content

Commit 43fe6b1

Browse files
committed
try fix GHA test
1 parent e9cc144 commit 43fe6b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_tracebacks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,15 @@ def test_colored_traceback(self):
218218
)[1]
219219
self.assertNotIn("\x1b", result)
220220

221+
env = os.environ.copy()
222+
if "GITHUB_ACTIONS" not in env:
223+
env["GITHUB_ACTIONS"] = "1"
221224
result = run_command(
222225
"test_command1",
223226
"delete",
224227
"Brian",
225228
"--throw",
226-
env={"GITHUB_ACTIONS": "1", **os.environ},
229+
env=env,
227230
)[1]
228231
self.assertIn("\x1b", result)
229232

0 commit comments

Comments
 (0)