diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2015-06-13 14:19:45 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-06-13 14:19:45 -0400 |
| commit | f230be76462efd15f48f216631f4d90db8d5685d (patch) | |
| tree | 1be236580970279f3ea4453841eed2a133ed8ea1 /tests/farm/html | |
| parent | 77b1655fd879553e2e889da37ba6a26fdf8ac833 (diff) | |
| download | python-coveragepy-f230be76462efd15f48f216631f4d90db8d5685d.tar.gz | |
Change FileLocator from a class to module-level functions
Diffstat (limited to 'tests/farm/html')
| -rw-r--r-- | tests/farm/html/run_a_xml_1.py | 4 | ||||
| -rw-r--r-- | tests/farm/html/run_a_xml_2.py | 4 | ||||
| -rw-r--r-- | tests/farm/html/run_y_xml_branch.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/farm/html/run_a_xml_1.py b/tests/farm/html/run_a_xml_1.py index 593beae..eec6617 100644 --- a/tests/farm/html/run_a_xml_1.py +++ b/tests/farm/html/run_a_xml_1.py @@ -2,14 +2,14 @@ source_path = None def html_it(): """Run coverage and make an XML report for a.""" - import coverage + import coverage, coverage.files cov = coverage.coverage() cov.start() import a # pragma: nested cov.stop() # pragma: nested cov.xml_report(a, outfile="../xml_1/coverage.xml") global source_path - source_path = cov.file_locator.relative_dir.rstrip('/') + source_path = coverage.files.relative_directory().rstrip('/') import os if not os.path.exists("xml_1"): diff --git a/tests/farm/html/run_a_xml_2.py b/tests/farm/html/run_a_xml_2.py index 4d691b3..081c8aa 100644 --- a/tests/farm/html/run_a_xml_2.py +++ b/tests/farm/html/run_a_xml_2.py @@ -2,14 +2,14 @@ source_path = None def html_it(): """Run coverage and make an XML report for a.""" - import coverage + import coverage, coverage.files cov = coverage.coverage(config_file="run_a_xml_2.ini") cov.start() import a # pragma: nested cov.stop() # pragma: nested cov.xml_report(a) global source_path - source_path = cov.file_locator.relative_dir.rstrip('/') + source_path = coverage.files.relative_directory().rstrip('/') import os if not os.path.exists("xml_2"): diff --git a/tests/farm/html/run_y_xml_branch.py b/tests/farm/html/run_y_xml_branch.py index 5922807..b26f3af 100644 --- a/tests/farm/html/run_y_xml_branch.py +++ b/tests/farm/html/run_y_xml_branch.py @@ -2,14 +2,14 @@ source_path = None def xml_it(): """Run coverage and make an XML report for y.""" - import coverage + import coverage, coverage.files cov = coverage.coverage(branch=True) cov.start() import y # pragma: nested cov.stop() # pragma: nested cov.xml_report(y, outfile="../xml_branch/coverage.xml") global source_path - source_path = cov.file_locator.relative_dir.rstrip('/') + source_path = coverage.files.relative_directory().rstrip('/') import os if not os.path.exists("xml_branch"): |
