diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-03-20 09:43:29 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-03-20 09:43:29 -0400 |
commit | d0ee1989ec56dc039ad880c1d554e66dd4caddd8 (patch) | |
tree | b85a3b949dd1dac766695f15677959e67e28f48c /test/farm/html/run_unicode.py | |
parent | b7e427abd66c45b094e9159b669490d36c0fb5bc (diff) | |
download | python-coveragepy-git-d0ee1989ec56dc039ad880c1d554e66dd4caddd8.tar.gz |
All the tests pass under PyPy: sys has a bogus __file__, Unicode is 4-byte, and pypy inserts an extra stack frame into tracebacks.
Diffstat (limited to 'test/farm/html/run_unicode.py')
-rw-r--r-- | test/farm/html/run_unicode.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/farm/html/run_unicode.py b/test/farm/html/run_unicode.py index 210a9113..6ed44660 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'>"ʎd˙ǝbɐɹǝʌoɔ"</span>", - "<span class='str'>"db40,dd00: x��"</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>", + ) + clean("html_unicode") |