From: Florent Xicluna Date: Thu, 23 Sep 2010 00:46:13 +0000 (+0000) Subject: Fix encoding for test case added in r84967. X-Git-Tag: v3.2a3~168 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d12a420acc4e056ec3a4deec1d730647a845ee11;p=thirdparty%2FPython%2Fcpython.git Fix encoding for test case added in r84967. --- diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py index ad9b62a2bc62..f7e240f119c5 100644 --- a/Lib/test/test_cfgparser.py +++ b/Lib/test/test_cfgparser.py @@ -337,7 +337,7 @@ boolean {0[0]} NO 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)