Skip to content

Commit 4ea989f

Browse files
committed
try fix traceback test
1 parent 43fe6b1 commit 4ea989f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

doc/source/performance.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
Performance
55
===========
66

7-
7+
Django management command startup time can be noticeably slow, especially for large projects with
8+
many models. We can perceive time at roughly 100 ms, bare
89

910
----------------
1011

tests/test_tracebacks.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,12 @@ 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"
224221
result = run_command(
225222
"test_command1",
226223
"delete",
227224
"Brian",
228225
"--throw",
229-
env=env,
226+
env={"FORCE_COLOR": "1", **os.environ},
230227
)[1]
231228
self.assertIn("\x1b", result)
232229

0 commit comments

Comments
 (0)