File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,7 @@ Rafal Semik
339339Raquel Alegre
340340Ravi Chandra
341341Reagan Lee
342+ Reilly Brogan
342343Robert Holt
343344Roberto Aldera
344345Roberto Polli
Original file line number Diff line number Diff line change @@ -221,7 +221,10 @@ def test_NO_COLOR_and_FORCE_COLOR(
221221 monkeypatch .setitem (os .environ , "FORCE_COLOR" , FORCE_COLOR )
222222 assert_color (expected )
223223
224-
224+ @pytest .mark .skipif (
225+ os .environ ["TERM" ] == "dumb" or "NO_COLOR" in os .environ ,
226+ reason = "dumb terminals can't handle color"
227+ )
225228def test_empty_NO_COLOR_and_FORCE_COLOR_ignored (monkeypatch : MonkeyPatch ) -> None :
226229 monkeypatch .setitem (os .environ , "NO_COLOR" , "" )
227230 monkeypatch .setitem (os .environ , "FORCE_COLOR" , "" )
You can’t perform that action at this time.
0 commit comments