diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-27 20:33:23 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-27 20:33:23 -0500 |
commit | 422862666b38cb2b537cbf05d0e865f1e2506346 (patch) | |
tree | b4f3e118fa0a8aae61f4d4bdde4f2a7a3f84f529 | |
parent | e57103ef537b5923b357e8ac6dccc954bee7031d (diff) | |
download | python-coveragepy-422862666b38cb2b537cbf05d0e865f1e2506346.tar.gz |
Remove some redundancy in the farm tests.
-rw-r--r-- | test/farm/html/gold_x_xml/coverage.xml | 2 | ||||
-rw-r--r-- | test/farm/html/run_a.py | 1 | ||||
-rw-r--r-- | test/farm/html/run_a_xml.py (renamed from test/farm/html/run_x_xml.py) | 5 | ||||
-rw-r--r-- | test/farm/html/src/x.py | 7 |
4 files changed, 5 insertions, 10 deletions
diff --git a/test/farm/html/gold_x_xml/coverage.xml b/test/farm/html/gold_x_xml/coverage.xml index 8c009f5..37027ef 100644 --- a/test/farm/html/gold_x_xml/coverage.xml +++ b/test/farm/html/gold_x_xml/coverage.xml @@ -6,7 +6,7 @@ <packages>
<package branch-rate="0.0" complexity="0.0" line-rate="0.666666666667" name=".">
<classes>
- <class branch-rate="0.0" complexity="0.0" filename="x.py" line-rate="0.666666666667" name="x">
+ <class branch-rate="0.0" complexity="0.0" filename="a.py" line-rate="0.666666666667" name="a">
<methods/>
<lines>
<line hits="1" number="3"/>
diff --git a/test/farm/html/run_a.py b/test/farm/html/run_a.py index 047d898..92d0234 100644 --- a/test/farm/html/run_a.py +++ b/test/farm/html/run_a.py @@ -4,6 +4,7 @@ def html_it(): cov = coverage.coverage() cov.start() import a + reload(a) # Because other test files import a, we have to reload to run it. cov.stop() cov.html_report(a, directory="../html_a") diff --git a/test/farm/html/run_x_xml.py b/test/farm/html/run_a_xml.py index fe9cefa..375be2a 100644 --- a/test/farm/html/run_x_xml.py +++ b/test/farm/html/run_a_xml.py @@ -3,9 +3,10 @@ def html_it(): import coverage cov = coverage.coverage() cov.start() - import x + import a + reload(a) # Because other test files import a, we have to reload to run it. cov.stop() - cov.xml_report(x, outfile="../xml/coverage.xml") + cov.xml_report(a, outfile="../xml/coverage.xml") import os if not os.path.exists("xml"): diff --git a/test/farm/html/src/x.py b/test/farm/html/src/x.py deleted file mode 100644 index 9e71aeb..0000000 --- a/test/farm/html/src/x.py +++ /dev/null @@ -1,7 +0,0 @@ -# A test file for HTML reporting by coverage. - -if 1 < 2: - # Needed a < to look at HTML entities. - a = 3 -else: - a = 4 |