diff options
author | Hye-Shik Chang <hyeshik@gmail.com> | 2007-08-13 13:11:39 (GMT) |
---|---|---|
committer | Hye-Shik Chang <hyeshik@gmail.com> | 2007-08-13 13:11:39 (GMT) |
commit | 49d90bc9ef6fb92f86c29dcda8abf67adbad35b9 (patch) | |
tree | 7b637642b16272c0dd2b2aaa427c63cefb82f6ea | |
parent | ead70565fcb59b920992021a2cd43f4687e207cb (diff) | |
download | cpython-49d90bc9ef6fb92f86c29dcda8abf67adbad35b9.zip cpython-49d90bc9ef6fb92f86c29dcda8abf67adbad35b9.tar.gz cpython-49d90bc9ef6fb92f86c29dcda8abf67adbad35b9.tar.bz2 |
Fix a test failure on non-UTF-8 locales: bad_coding2.py is encoded
in utf-8.
-rw-r--r-- | Lib/test/test_coding.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_coding.py b/Lib/test/test_coding.py index 62cf555..4d4b3f9 100644 --- a/Lib/test/test_coding.py +++ b/Lib/test/test_coding.py @@ -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') |