diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-10-14 17:59:40 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-10-14 17:59:40 -0400 |
commit | 4a404ce724280bf9c5f4bcf1e6a5ba76d7499d89 (patch) | |
tree | 9dd07ab826b6effea3c696adf75e51c207abcd1d /tests/test_html.py | |
parent | 83ccf7ad923f75c736c42bf9117a57a156042c4a (diff) | |
download | python-coveragepy-git-4a404ce724280bf9c5f4bcf1e6a5ba76d7499d89.tar.gz |
Use --source to ensure tests are showing what we want.
Travis started having these extra files in coverage reports from our
tests:
site-packages/pkg_resources/_vendor/six.py
site-packages/pkg_resources/extern/__init__.py
I don't know why they are being pulled in, but the tests aren't
interested in them, and it is throwing off the results.
Diffstat (limited to 'tests/test_html.py')
-rw-r--r-- | tests/test_html.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_html.py b/tests/test_html.py index 955a8537..8c6dc693 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -343,7 +343,7 @@ class HtmlWithUnparsableFilesTest(HtmlTestHelpers, CoverageTest): # Run an "HTML" file self.make_file("innocuous.html", "a = 3") - self.run_command("coverage run innocuous.html") + self.run_command("coverage run --source=. innocuous.html") # Before reporting, change it to be an HTML file. self.make_file("innocuous.html", "<h1>This isn't python at all!</h1>") output = self.run_command("coverage html") |