[Python-checkins] r84968 - python/branches/py3k/Lib/test/test_cfgparser.py
florent.xicluna
python-checkins at python.org
Thu Sep 23 02:46:14 CEST 2010
Author: florent.xicluna
Date: Thu Sep 23 02:46:13 2010
New Revision: 84968
Log:
Fix encoding for test case added in r84967.
Modified:
python/branches/py3k/Lib/test/test_cfgparser.py
Modified: python/branches/py3k/Lib/test/test_cfgparser.py
==============================================================================
--- python/branches/py3k/Lib/test/test_cfgparser.py (original)
+++ python/branches/py3k/Lib/test/test_cfgparser.py Thu Sep 23 02:46:13 2010
@@ -337,7 +337,7 @@
error = configparser.MissingSectionHeaderError
expected = (tricky, 1,
' # INI with as many tricky parts as possible\n')
- with open(tricky) as f:
+ with open(tricky, encoding='utf-8') as f:
e = self.parse_error(cf, error, f)
self.assertEqual(e.args, expected)
More information about the Python-checkins
mailing list