Fix which test in PR#28812

This commit is contained in:
Dmitry Kuzmenko 2015-11-17 11:29:41 +03:00
parent 20033eeeb7
commit 18571000c5

View file

@ -71,9 +71,9 @@ class TestWhich(integration.TestCase):
False,
# The second, iterating through $PATH, should also return False,
# still checking for Linux
False,
# Lastly return True, this is the windows check.
True
# which() will add 4 extra paths to the given one, os.access will
# be called 5 times
False, False, False, False, False
]
# Let's patch os.environ to provide a custom PATH variable
with patch.dict(os.environ, {'PATH': '/bin'}):