summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2007-08-13 13:11:39 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2007-08-13 13:11:39 (GMT)
commit49d90bc9ef6fb92f86c29dcda8abf67adbad35b9 (patch)
tree7b637642b16272c0dd2b2aaa427c63cefb82f6ea
parentead70565fcb59b920992021a2cd43f4687e207cb (diff)
downloadcpython-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.py2
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')