summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cfgparser.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-09-23 00:46:13 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-09-23 00:46:13 (GMT)
commitd12a420acc4e056ec3a4deec1d730647a845ee11 (patch)
treed3b0a8f311098a17dca058b461e2258ba0e2c9a7 /Lib/test/test_cfgparser.py
parent42d544505fff126ba131ca20c455c3245a5687a1 (diff)
downloadcpython-d12a420acc4e056ec3a4deec1d730647a845ee11.zip
cpython-d12a420acc4e056ec3a4deec1d730647a845ee11.tar.gz
cpython-d12a420acc4e056ec3a4deec1d730647a845ee11.tar.bz2
Fix encoding for test case added in r84967.
Diffstat (limited to 'Lib/test/test_cfgparser.py')
-rw-r--r--Lib/test/test_cfgparser.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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)