[Python-checkins] r86000 - python/branches/py3k/Lib/test/test_fileio.py

brian.curtin python-checkins at python.org
Sun Oct 31 01:56:45 CEST 2010


Author: brian.curtin
Date: Sun Oct 31 01:56:45 2010
New Revision: 86000

Log:
Fix ResourceWarning about unclosed file


Modified:
   python/branches/py3k/Lib/test/test_fileio.py

Modified: python/branches/py3k/Lib/test/test_fileio.py
==============================================================================
--- python/branches/py3k/Lib/test/test_fileio.py	(original)
+++ python/branches/py3k/Lib/test/test_fileio.py	Sun Oct 31 01:56:45 2010
@@ -260,7 +260,6 @@
                     # OS'es that don't support /dev/tty.
                     pass
                 else:
-                    f = _FileIO("/dev/tty", "a")
                     self.assertEquals(f.readable(), False)
                     self.assertEquals(f.writable(), True)
                     if sys.platform != "darwin" and \


More information about the Python-checkins mailing list