commit | d12a420acc4e056ec3a4deec1d730647a845ee11 | [log] [tgz] |
---|---|---|
author | Florent Xicluna <florent.xicluna@gmail.com> | Thu Sep 23 00:46:13 2010 +0000 |
committer | Florent Xicluna <florent.xicluna@gmail.com> | Thu Sep 23 00:46:13 2010 +0000 |
tree | d3b0a8f311098a17dca058b461e2258ba0e2c9a7 | |
parent | 42d544505fff126ba131ca20c455c3245a5687a1 [diff] |
Fix encoding for test case added in r84967.
diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py index ad9b62a..f7e240f 100644 --- a/Lib/test/test_cfgparser.py +++ b/Lib/test/test_cfgparser.py
@@ -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)