From d12a420acc4e056ec3a4deec1d730647a845ee11 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Thu, 23 Sep 2010 00:46:13 +0000 Subject: [PATCH] Fix encoding for test case added in r84967. --- Lib/test/test_cfgparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py index ad9b62a2bc..f7e240f119 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) -- 2.40.0