mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #20053: Actually test relevant assumption
This commit is contained in:
parent
f28ba369dd
commit
d49fa5eb11
1 changed files with 1 additions and 1 deletions
|
@ -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"")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue