commit | f9a0ea8ce1b7907c2f3073be0539d0a0b067a8fa | [log] [tgz] |
---|---|---|
author | Hye-Shik Chang <hyeshik@gmail.com> | Tue Jun 05 19:28:15 2007 +0000 |
committer | Hye-Shik Chang <hyeshik@gmail.com> | Tue Jun 05 19:28:15 2007 +0000 |
tree | e66f28f6e3dd4bd059190d1498498084b6988163 | |
parent | 9b5414090b8cdd7fb086578003398066585a42c7 [diff] [blame] |
Fix for Windows: close a temporary file before trying to delete it.
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 @@ 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):