From 49d90bc9ef6fb92f86c29dcda8abf67adbad35b9 Mon Sep 17 00:00:00 2001 From: Hye-Shik Chang Date: Mon, 13 Aug 2007 13:11:39 +0000 Subject: Fix a test failure on non-UTF-8 locales: bad_coding2.py is encoded in utf-8. --- Lib/test/test_coding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- cgit v0.12