Commits

Anonymous committed 35acced

Fix for Windows: close a temporary file before trying to delete it.

  • Participants
  • Parent commits 76194e6
  • Branches 2.4

Comments (0)

Files changed (1)

File Lib/test/test_multibytecodec.py

             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):