summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-10-16 21:00:59 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-10-16 21:00:59 -0400
commit5c4bbc3e0fc3d1a1cb0dffae37d4de6f3b29613e (patch)
tree29c7ed6e4b78e26dc04b7cf4e44c42f642a235be /igor.py
parent5d725e5e3280387feb24ea6112eea339ed8d3571 (diff)
downloadpython-coveragepy-git-5c4bbc3e0fc3d1a1cb0dffae37d4de6f3b29613e.tar.gz
Do a better job decoding source files. #431
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/igor.py b/igor.py
index 4ef952b3..409fdc91 100644
--- a/igor.py
+++ b/igor.py
@@ -214,11 +214,13 @@ def do_zip_mods():
assert [ord(c) for c in text] == ords
print(u"All OK with {encoding}")
""")
+ # These encodings should match the list in tests/test_python.py
details = [
(u'utf8', u'ⓗⓔⓛⓛⓞ, ⓦⓞⓡⓛⓓ'),
(u'gb2312', u'你好,世界'),
(u'hebrew', u'שלום, עולם'),
(u'shift_jis', u'こんにちは世界'),
+ (u'cp1252', u'“hi”'),
]
for encoding, text in details:
filename = 'encoded_{0}.py'.format(encoding)