summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_html.py4
-rw-r--r--test/test_xml.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/test_html.py b/test/test_html.py
index 7c42b8c7..29106562 100644
--- a/test/test_html.py
+++ b/test/test_html.py
@@ -230,7 +230,7 @@ class HtmlWithUnparsableFilesTest(CoverageTest):
)
def test_dotpy_not_python_ignored(self):
- self.make_file("innocuous.py", "a = 1")
+ self.make_file("innocuous.py", "a = 2")
cov = coverage.coverage()
cov.start()
self.import_local_file("innocuous")
@@ -246,7 +246,7 @@ class HtmlWithUnparsableFilesTest(CoverageTest):
# Python. Since it wasn't .py, no error is reported.
# Run an "html" file
- self.make_file("innocuous.html", "a = 1")
+ self.make_file("innocuous.html", "a = 3")
self.run_command("coverage run innocuous.html")
# Before reporting, change it to be an HTML file.
self.make_file("innocuous.html", "<h1>This isn't python at all!</h1>")
diff --git a/test/test_xml.py b/test/test_xml.py
index 6542dcac..dda03e09 100644
--- a/test/test_xml.py
+++ b/test/test_xml.py
@@ -40,7 +40,7 @@ class XmlReportTest(CoverageTest):
def test_no_source(self):
# Written while investigating a bug, might as well keep it.
# https://bitbucket.org/ned/coveragepy/issue/208
- self.make_file("innocuous.py", "a = 1")
+ self.make_file("innocuous.py", "a = 4")
cov = coverage.coverage()
cov.start()
self.import_local_file("innocuous")
@@ -76,7 +76,7 @@ class XmlReportTest(CoverageTest):
def test_filename_format_including_module(self):
cov = self.run_doit()
- import sub.doit
+ import sub.doit # pylint: disable=F0401
cov.xml_report([sub.doit], outfile="-")
xml = self.stdout()
doit_line = re_line(xml, "class.*doit")