summaryrefslogtreecommitdiff
path: root/Lib/test/test_coding.py
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2007-08-13 13:11:39 +0000
committerHye-Shik Chang <hyeshik@gmail.com>2007-08-13 13:11:39 +0000
commit1096d0f13ebbc5900c21626a5caf6276b36229d8 (patch)
tree90f15071b3d5fbb4cc254b8fbbfd6cabd48319b0 /Lib/test/test_coding.py
parent63cb5d76d2a02a269cdd1d64ee362b5e0c8c3042 (diff)
downloadcpython-1096d0f13ebbc5900c21626a5caf6276b36229d8.tar.gz
Fix a test failure on non-UTF-8 locales: bad_coding2.py is encoded
in utf-8.
Diffstat (limited to 'Lib/test/test_coding.py')
-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 62cf55555b..4d4b3f966a 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')