summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-09-27 10:21:51 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-09-27 10:21:51 -0400
commit8cb39e7b8f4b6fbe4f84ea7bd6e9f51f5958dbae (patch)
tree540bb25fb1f6d39daf744ef94dc56aeca3d69917 /test
parentc4c25e13b8468655ff69c9783df4534c217730be (diff)
downloadpython-coveragepy-8cb39e7b8f4b6fbe4f84ea7bd6e9f51f5958dbae.tar.gz
Try to make this test impervious to platform differences.
Diffstat (limited to 'test')
-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.py6
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 8f25d25..8f25d25 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 b6f6c4f..2285032 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)