summaryrefslogtreecommitdiff
path: root/test/farm/html/run_partial.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-06-03 23:19:10 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-06-03 23:19:10 -0400
commit64a2ffaaa2739ab0df4db7322e51c3faae7bafdb (patch)
tree53dfa364510f45a93d3a06c0881be80ade9d2441 /test/farm/html/run_partial.py
parentd2ef0b1e323c85e9a7fc3782bc4d5cd5511d9a74 (diff)
downloadpython-coveragepy-git-64a2ffaaa2739ab0df4db7322e51c3faae7bafdb.tar.gz
Fix a test involving optimized-away constant if statements, and add a test about them.
Diffstat (limited to 'test/farm/html/run_partial.py')
-rw-r--r--test/farm/html/run_partial.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/farm/html/run_partial.py b/test/farm/html/run_partial.py
index 3fb621a1..0ef8589c 100644
--- a/test/farm/html/run_partial.py
+++ b/test/farm/html/run_partial.py
@@ -1,3 +1,5 @@
+import sys
+
def html_it():
"""Run coverage and make an HTML report for partial."""
import coverage
@@ -21,7 +23,10 @@ contains("html_partial/partial.html",
)
contains("html_partial/index.html",
"<a href='partial.html'>partial</a>",
- "<span class='pc_cov'>100%</span>"
)
+if sys.version_info >= (2, 4):
+ contains("html_partial/index.html",
+ "<span class='pc_cov'>100%</span>"
+ )
clean("html_partial")