]> granicus.if.org Git - python/commitdiff
Fix encoding for test case added in r84967.
authorFlorent Xicluna <florent.xicluna@gmail.com>
Thu, 23 Sep 2010 00:46:13 +0000 (00:46 +0000)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Thu, 23 Sep 2010 00:46:13 +0000 (00:46 +0000)
Lib/test/test_cfgparser.py

index ad9b62a2bc623b97acab4fbd8feebc2ae45ef830..f7e240f119c519b15a9dfc7020622720753cf41f 100644 (file)
@@ -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)