Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_multibytecodec.py @ 41951:cfbcff66e725 legacy-trunk
Fix for Windows: close a temporary file before trying to delete it.
| author | Hye-Shik Chang <hyeshik@gmail.com> |
|---|---|
| date | Tue, 05 Jun 2007 19:28:15 +0000 |
| parents | b6c1a1a15a6c |
| children | efe706aab32b |
line wrap: on
line diff
--- a/Lib/test/test_multibytecodec.py Tue Jun 05 18:58:51 2007 +0000 +++ b/Lib/test/test_multibytecodec.py Tue Jun 05 19:28:15 2007 +0000 @@ -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):
