summaryrefslogtreecommitdiff
path: root/test/farm/html/run_unicode.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/farm/html/run_unicode.py')
-rw-r--r--test/farm/html/run_unicode.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/farm/html/run_unicode.py b/test/farm/html/run_unicode.py
index 210a911..6ed4466 100644
--- a/test/farm/html/run_unicode.py
+++ b/test/farm/html/run_unicode.py
@@ -1,3 +1,5 @@
+import sys
+
def html_it():
"""Run coverage and make an HTML report for unicode.py."""
import coverage
@@ -14,7 +16,15 @@ runfunc(html_it, rundir="src")
compare("gold_unicode", "html_unicode", size_within=10, file_pattern="*.html")
contains("html_unicode/unicode.html",
"<span class='str'>&quot;&#654;d&#729;&#477;b&#592;&#633;&#477;&#652;o&#596;&quot;</span>",
- "<span class='str'>&quot;db40,dd00: x&#56128;&#56576;&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>",
+ )
+
clean("html_unicode")