diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-09-21 18:23:54 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-09-21 18:23:54 -0400 |
commit | eff5f72064a0577fd0b61a634c4196271dc19308 (patch) | |
tree | 94bf6f45e9a042d9075590a6c9f884b294c2e575 /tests/farm/html/run_unicode.py | |
parent | eb307693feb754f483e10e34a10d4540d1f01627 (diff) | |
download | python-coveragepy-git-eff5f72064a0577fd0b61a634c4196271dc19308.tar.gz |
2.7.8 changed how xmlcharrefreplace handles surrogates.
Diffstat (limited to 'tests/farm/html/run_unicode.py')
-rw-r--r-- | tests/farm/html/run_unicode.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/farm/html/run_unicode.py b/tests/farm/html/run_unicode.py index cef26ee5..c8cb6c50 100644 --- a/tests/farm/html/run_unicode.py +++ b/tests/farm/html/run_unicode.py @@ -1,5 +1,3 @@ -import sys - def html_it(): """Run coverage and make an HTML report for unicode.py.""" import coverage @@ -18,13 +16,9 @@ contains("html_unicode/unicode.html", "<span class='str'>"ʎd˙ǝbɐɹǝʌoɔ"</span>", ) -if sys.maxunicode == 65535: - contains("html_unicode/unicode.html", - "<span class='str'>"db40,dd00: x��"</span>", - ) -else: - contains("html_unicode/unicode.html", - "<span class='str'>"db40,dd00: x󠄀"</span>", - ) +contains_any("html_unicode/unicode.html", + "<span class='str'>"db40,dd00: x��"</span>", + "<span class='str'>"db40,dd00: x󠄀"</span>", + ) clean("html_unicode") |