[Python-3000-checkins] r56983 - python/branches/py3k/Lib/test/test_coding.py

hyeshik.chang python-3000-checkins at python.org
Mon Aug 13 15:11:40 CEST 2007


Author: hyeshik.chang
Date: Mon Aug 13 15:11:39 2007
New Revision: 56983

Modified:
   python/branches/py3k/Lib/test/test_coding.py
Log:
Fix a test failure on non-UTF-8 locales: bad_coding2.py is encoded
in utf-8.


Modified: python/branches/py3k/Lib/test/test_coding.py
==============================================================================
--- python/branches/py3k/Lib/test/test_coding.py	(original)
+++ python/branches/py3k/Lib/test/test_coding.py	Mon Aug 13 15:11:39 2007
@@ -16,7 +16,7 @@
 
         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')


More information about the Python-3000-checkins mailing list