summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_process.py2
-rw-r--r--tests/test_summary.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_process.py b/tests/test_process.py
index 01fd1eb8..9f07b9cc 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -1495,7 +1495,7 @@ class ProcessStartupTest(ProcessCoverageMixin, CoverageTest):
data_file = .mycovdata
""")
self.set_environ("COVERAGE_PROCESS_START", "coverage.ini")
- import main # pylint: disable=unused-import
+ import main # pylint: disable=unused-import, import-error
with open("out.txt") as f:
assert f.read() == "Hello, world!\n"
diff --git a/tests/test_summary.py b/tests/test_summary.py
index 0632c8f5..36f3885c 100644
--- a/tests/test_summary.py
+++ b/tests/test_summary.py
@@ -677,7 +677,7 @@ class SummaryTest(UsingModulesMixin, CoverageTest):
""")
cov = coverage.Coverage(branch=True, source=["."])
cov.start()
- import main # pragma: nested # pylint: disable=unused-import
+ import main # pragma: nested # pylint: disable=unused-import, import-error
cov.stop() # pragma: nested
report = self.get_report(cov).splitlines()
assert "mybranch.py 5 5 2 0 0%" in report
@@ -739,7 +739,7 @@ class SummaryTest(UsingModulesMixin, CoverageTest):
# Run the program.
cov = coverage.Coverage()
cov.start()
- import main # pragma: nested # pylint: disable=unused-import
+ import main # pragma: nested # pylint: disable=unused-import, import-error
cov.stop() # pragma: nested
report = self.get_report(cov).splitlines()
@@ -766,7 +766,7 @@ class SummaryTest(UsingModulesMixin, CoverageTest):
# Run the program.
cov = coverage.Coverage()
cov.start()
- import main # pragma: nested # pylint: disable=unused-import
+ import main # pragma: nested # pylint: disable=unused-import, import-error
cov.stop() # pragma: nested
# Put back the missing Python file.