Commit f9a0ea8c authored by Hye-Shik Chang's avatar Hye-Shik Chang

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

parent 9b541409
......@@ -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