summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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')