diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2011-06-03 23:19:10 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-06-03 23:19:10 -0400 |
| commit | b95c977d2324cb4490a1fa60f16ba9f5901932b2 (patch) | |
| tree | a5bb96c251c8849ee0a2fc38266b0e84c97b8d30 /test/farm/html | |
| parent | 8bcc7a31b38ea0ddd2b139834d8860e681658008 (diff) | |
| download | python-coveragepy-b95c977d2324cb4490a1fa60f16ba9f5901932b2.tar.gz | |
Fix a test involving optimized-away constant if statements, and add a test about them.
Diffstat (limited to 'test/farm/html')
| -rw-r--r-- | test/farm/html/run_partial.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/farm/html/run_partial.py b/test/farm/html/run_partial.py index 3fb621a..0ef8589 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") |
