Change test to remove missed branch

This commit is contained in:
Edgar Geier 2019-07-22 20:23:59 +02:00
parent e9ff1be96c
commit 84dcb91119

View file

@ -54,9 +54,7 @@ def test_use_color_raises_if_given_shenanigans():
def test_no_color_env_unset():
with mock.patch.dict(os.environ):
if 'NO_COLOR' in os.environ:
del os.environ['NO_COLOR']
with mock.patch.dict(os.environ, clear=True):
assert use_color('always') is True