Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 84dcb91

Browse files
committed
Change test to remove missed branch
1 parent e9ff1be commit 84dcb91

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/color_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ def test_use_color_raises_if_given_shenanigans():
5454

5555

5656
def test_no_color_env_unset():
57-
with mock.patch.dict(os.environ):
58-
if 'NO_COLOR' in os.environ:
59-
del os.environ['NO_COLOR']
57+
with mock.patch.dict(os.environ, clear=True):
6058
assert use_color('always') is True
6159

6260

0 commit comments

Comments
 (0)