diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-10-16 21:00:59 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-10-16 21:00:59 -0400 |
commit | c731debc01e436609b73248f6dfd9581d039fc1a (patch) | |
tree | 709e551020ff2b6dd2a12e081fb14a1053e74204 /igor.py | |
parent | 9f269ac30b46038ee1fec1c89fb5b5fef5ce6678 (diff) | |
download | python-coveragepy-c731debc01e436609b73248f6dfd9581d039fc1a.tar.gz |
Do a better job decoding source files. #431
Diffstat (limited to 'igor.py')
-rw-r--r-- | igor.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |