Commit 49d90bc9 authored by Hye-Shik Chang's avatar Hye-Shik Chang

Fix a test failure on non-UTF-8 locales: bad_coding2.py is encoded

in utf-8.
parent ead70565
......@@ -16,7 +16,7 @@ class CodingTest(unittest.TestCase):
path = os.path.dirname(__file__)
filename = os.path.join(path, module_name + '.py')
fp = open(filename)
fp = open(filename, encoding='utf-8')
text = fp.read()
fp.close()
self.assertRaises(SyntaxError, compile, text, filename, 'exec')
......
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