diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-26 12:01:45 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-26 12:01:45 -0500 |
| commit | f3338803b7b8b4cda34270c4fbf951ad74913980 (patch) | |
| tree | c94614f6c4b0eb036430135c885b0089c60f3718 /tests | |
| parent | 198a11535b5065416c41e7fdc025718c1a92eff3 (diff) | |
| download | python-coveragepy-git-f3338803b7b8b4cda34270c4fbf951ad74913980.tar.gz | |
build: update to latest pylint
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_process.py | 2 | ||||
| -rw-r--r-- | tests/test_summary.py | 6 |
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. |
