diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-12-30 07:05:42 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-12-30 09:57:46 -0500 |
commit | 27990185352f035bafbb0cc7c8ac4159e87fe070 (patch) | |
tree | e3f0a1a19f893347c7909294db770e6aa8e514d6 /tests | |
parent | c802be289c40f896e910a4f34f1ce27aedc44a0b (diff) | |
download | python-coveragepy-git-27990185352f035bafbb0cc7c8ac4159e87fe070.tar.gz |
mypy: inorout.py, disposition.py, and part of control.py
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_api.py | 2 | ||||
-rw-r--r-- | tests/test_config.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index ee24aa8f..71712f8e 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -32,6 +32,8 @@ BAD_SQLITE_REGEX = r"file( is encrypted or)? is not a database" class ApiTest(CoverageTest): """Api-oriented tests for coverage.py.""" + # pylint: disable=use-implicit-booleaness-not-comparison + def clean_files(self, files, pats): """Remove names matching `pats` from `files`, a list of file names.""" good = [] diff --git a/tests/test_config.py b/tests/test_config.py index eb0733dd..26276c47 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -638,7 +638,7 @@ class ConfigFileTest(UsingModulesMixin, CoverageTest): """) cov = coverage.Coverage() assert cov.config.run_include == ["foo"] - assert cov.config.run_omit is None + assert cov.config.run_omit == [] assert cov.config.branch is False def test_setupcfg_only_if_not_coveragerc(self): @@ -655,7 +655,7 @@ class ConfigFileTest(UsingModulesMixin, CoverageTest): branch = true """) cov = coverage.Coverage() - assert cov.config.run_omit is None + assert cov.config.run_omit == [] assert cov.config.branch is False def test_setupcfg_only_if_prefixed(self): |