diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-27 10:21:51 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-27 10:21:51 -0400 |
commit | 863780c17c5796b5986cbccd870bd6a805cf325c (patch) | |
tree | ddc1111eca19952a5f0941059955a5a79cbb01dd | |
parent | e432a86f71929dc3ec00ab1664783aaa1afbcc8d (diff) | |
download | python-coveragepy-git-863780c17c5796b5986cbccd870bd6a805cf325c.tar.gz |
Try to make this test impervious to platform differences.
--HG--
rename : test/farm/html/gold_other/_ned_coverage_trunk_test_farm_html_othersrc_other.html => test/farm/html/gold_other/blah_blah_other.html
-rw-r--r-- | test/farm/html/gold_other/blah_blah_other.html (renamed from test/farm/html/gold_other/_ned_coverage_trunk_test_farm_html_othersrc_other.html) | 0 | ||||
-rw-r--r-- | test/farm/html/run_other.py | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/farm/html/gold_other/_ned_coverage_trunk_test_farm_html_othersrc_other.html b/test/farm/html/gold_other/blah_blah_other.html index 8f25d256..8f25d256 100644 --- a/test/farm/html/gold_other/_ned_coverage_trunk_test_farm_html_othersrc_other.html +++ b/test/farm/html/gold_other/blah_blah_other.html diff --git a/test/farm/html/run_other.py b/test/farm/html/run_other.py index b6f6c4fc..22850326 100644 --- a/test/farm/html/run_other.py +++ b/test/farm/html/run_other.py @@ -9,6 +9,12 @@ def html_it(): runfunc(html_it, rundir="src", addtopath="../othersrc") +# Different platforms will name the "other" file differently. Rename it +import os, glob + +for p in glob.glob("otherhtml/*_other.html"): + os.rename(p, "otherhtml/blah_blah_other.html") + # HTML files will change often. Check that the sizes are reasonable, # and check that certain key strings are in the output. compare("gold_other", "otherhtml", size_within=10) |