Skip to content

Commit 2c0acf1

Browse files
authored
Merge pull request #12244 from ReillyBrogan/fix-color-test
Fixed color test when TERM=dumb
2 parents f1e3fee + df4af6a commit 2c0acf1

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ Reza Mousavi
383383
Raquel Alegre
384384
Ravi Chandra
385385
Reagan Lee
386+
Reilly Brogan
386387
Rob Arrow
387388
Robert Holt
388389
Roberto Aldera

changelog/12244.contrib.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed self-test failures when `TERM=dumb`.

testing/io/test_terminalwriter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ def test_NO_COLOR_and_FORCE_COLOR(
224224

225225

226226
def test_empty_NO_COLOR_and_FORCE_COLOR_ignored(monkeypatch: MonkeyPatch) -> None:
227+
monkeypatch.setenv("TERM", "xterm-256color")
227228
monkeypatch.setitem(os.environ, "NO_COLOR", "")
228229
monkeypatch.setitem(os.environ, "FORCE_COLOR", "")
229230
assert_color(True, True)

0 commit comments

Comments
 (0)