]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 86000 via svnmerge from
authorBrian Curtin <brian.curtin@gmail.com>
Sat, 30 Oct 2010 23:58:50 +0000 (23:58 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Sat, 30 Oct 2010 23:58:50 +0000 (23:58 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86000 | brian.curtin | 2010-10-30 18:56:45 -0500 (Sat, 30 Oct 2010) | 2 lines

  Fix ResourceWarning about unclosed file
........

Lib/test/test_fileio.py

index 2f299dc32e2238452a9c5d4fbe8b1d92beae9ead..fa305da42a291ed69981f2b72ef5d59f4790b951 100644 (file)
@@ -264,7 +264,6 @@ class OtherFileTests(unittest.TestCase):
                     # 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 \