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')
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to