diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-10-30 23:56:45 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-10-30 23:56:45 (GMT) |
commit | 3ddcaafbbfc02a5210d7f8143c6d7487aa97ad03 (patch) | |
tree | 24ca447534fc336d674998812812b768ac4f1cc9 | |
parent | b2fda239225413ae5658f2409ac4d7922b3c7e7c (diff) | |
download | cpython-3ddcaafbbfc02a5210d7f8143c6d7487aa97ad03.zip cpython-3ddcaafbbfc02a5210d7f8143c6d7487aa97ad03.tar.gz cpython-3ddcaafbbfc02a5210d7f8143c6d7487aa97ad03.tar.bz2 |
Fix ResourceWarning about unclosed file
-rw-r--r-- | Lib/test/test_fileio.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py index 350ba5d..154cdd3 100644 --- a/Lib/test/test_fileio.py +++ b/Lib/test/test_fileio.py @@ -260,7 +260,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 \ |