diff options
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): |