[Python-checkins] cpython: Issue #20053: Actually test relevant assumption

nick.coghlan python-checkins at python.org
Fri Feb 7 13:28:34 CET 2014


http://hg.python.org/cpython/rev/17bea44a9fa7
changeset:   89010:17bea44a9fa7
user:        Nick Coghlan <ncoghlan at gmail.com>
date:        Fri Feb 07 22:28:18 2014 +1000
summary:
  Issue #20053: Actually test relevant assumption

files:
  Lib/test/test_venv.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -291,7 +291,7 @@
     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"")
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list