summaryrefslogtreecommitdiff
path: root/tests/farm/html/run_unicode.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-09-21 18:23:54 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-09-21 18:23:54 -0400
commiteff5f72064a0577fd0b61a634c4196271dc19308 (patch)
tree94bf6f45e9a042d9075590a6c9f884b294c2e575 /tests/farm/html/run_unicode.py
parenteb307693feb754f483e10e34a10d4540d1f01627 (diff)
downloadpython-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.py14
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'>&quot;&#654;d&#729;&#477;b&#592;&#633;&#477;&#652;o&#596;&quot;</span>",
)
-if sys.maxunicode == 65535:
- contains("html_unicode/unicode.html",
- "<span class='str'>&quot;db40,dd00: x&#56128;&#56576;&quot;</span>",
- )
-else:
- contains("html_unicode/unicode.html",
- "<span class='str'>&quot;db40,dd00: x&#917760;&quot;</span>",
- )
+contains_any("html_unicode/unicode.html",
+ "<span class='str'>&quot;db40,dd00: x&#56128;&#56576;&quot;</span>",
+ "<span class='str'>&quot;db40,dd00: x&#917760;&quot;</span>",
+ )
clean("html_unicode")