From eff5f72064a0577fd0b61a634c4196271dc19308 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 21 Sep 2014 18:23:54 -0400 Subject: 2.7.8 changed how xmlcharrefreplace handles surrogates. --- tests/farm/html/run_unicode.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'tests/farm') 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", ""ʎd˙ǝbɐɹǝʌoɔ"", ) -if sys.maxunicode == 65535: - contains("html_unicode/unicode.html", - ""db40,dd00: x��"", - ) -else: - contains("html_unicode/unicode.html", - ""db40,dd00: x󠄀"", - ) +contains_any("html_unicode/unicode.html", + ""db40,dd00: x��"", + ""db40,dd00: x󠄀"", + ) clean("html_unicode") -- cgit v1.2.1