summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-10-30 23:56:45 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-10-30 23:56:45 (GMT)
commit3ddcaafbbfc02a5210d7f8143c6d7487aa97ad03 (patch)
tree24ca447534fc336d674998812812b768ac4f1cc9
parentb2fda239225413ae5658f2409ac4d7922b3c7e7c (diff)
downloadcpython-3ddcaafbbfc02a5210d7f8143c6d7487aa97ad03.zip
cpython-3ddcaafbbfc02a5210d7f8143c6d7487aa97ad03.tar.gz
cpython-3ddcaafbbfc02a5210d7f8143c6d7487aa97ad03.tar.bz2
Fix ResourceWarning about unclosed file
-rw-r--r--Lib/test/test_fileio.py1
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 \