commit | fc41f199bab37eb3ae0a7ce2994e0638b75cbded | [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 | 1bf6678999e9c84fd6f0002f210fa554fe1d13d8 | |
parent | 60111e09a915be77762c7af5448ea34a61de4577 [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 dd933f3..bee762f 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):