Issue #20053: Actually test relevant assumption

This commit is contained in:
Nick Coghlan 2014-02-07 22:28:18 +10:00
parent f28ba369dd
commit d49fa5eb11

View file

@ -291,7 +291,7 @@ class EnsurePipTest(BaseTest):
def test_devnull_exists_and_is_empty(self):
# Fix for issue #20053 uses os.devnull to force a config file to
# appear empty. Make sure that assumption is valid cross platform.
self.assertTrue(os.path.exists, os.devnull)
self.assertTrue(os.path.exists(os.devnull))
with open(os.devnull, "rb") as f:
self.assertEqual(f.read(), b"")