summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2007-06-05 19:28:15 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2007-06-05 19:28:15 (GMT)
commitf9a0ea8ce1b7907c2f3073be0539d0a0b067a8fa (patch)
treee66f28f6e3dd4bd059190d1498498084b6988163 /Lib
parent9b5414090b8cdd7fb086578003398066585a42c7 (diff)
downloadcpython-f9a0ea8ce1b7907c2f3073be0539d0a0b067a8fa.zip
cpython-f9a0ea8ce1b7907c2f3073be0539d0a0b067a8fa.tar.gz
cpython-f9a0ea8ce1b7907c2f3073be0539d0a0b067a8fa.tar.bz2
Fix for Windows: close a temporary file before trying to delete it.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_multibytecodec.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_multibytecodec.py b/Lib/test/test_multibytecodec.py
index b6557f3..f2b042c 100644
--- a/Lib/test/test_multibytecodec.py
+++ b/Lib/test/test_multibytecodec.py
@@ -143,6 +143,8 @@ class Test_StreamReader(unittest.TestCase):
f = codecs.open(TESTFN, encoding='cp949')
self.assertRaises(UnicodeDecodeError, f.read, 2)
finally:
+ try: f.close()
+ except: pass
os.unlink(TESTFN)
class Test_StreamWriter(unittest.TestCase):