Kaydet (Commit) fc41f199 authored tarafından Hye-Shik Chang's avatar Hye-Shik Chang

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

üst 60111e09
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment