Skip to content

Commit

Permalink
Remove workaround for bpo20541 as NUL now exists
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Aug 20, 2019
1 parent d73d077 commit 57cc198
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Lib/test/test_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,7 @@ def test_devnull(self):
with open(os.devnull, "rb") as f:
self.assertEqual(f.read(), b"")

# Issue #20541: os.path.exists('nul') is False on Windows
if os.devnull.lower() == 'nul':
self.assertFalse(os.path.exists(os.devnull))
else:
self.assertTrue(os.path.exists(os.devnull))
self.assertTrue(os.path.exists(os.devnull))

def do_test_with_pip(self, system_site_packages):
rmtree(self.env_dir)
Expand Down

0 comments on commit 57cc198

Please sign in to comment.