summaryrefslogtreecommitdiff
path: root/tests/test_api.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-01-31 09:12:43 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-01-31 09:20:49 -0500
commit65b5830a4d13d65c3bb314dd4894d565a16ceb9b (patch)
tree12b5c6bdf4bb68145c75d3c2d802adc050c7febb /tests/test_api.py
parent4bad09744d80c6123e77252d5db09a31db25297b (diff)
downloadpython-coveragepy-git-65b5830a4d13d65c3bb314dd4894d565a16ceb9b.tar.gz
style: singleton comparisons should use is
I guess the original line was wrong, but it would have been nice for unittest2pytest to fix it for me: https://github.com/pytest-dev/unittest2pytest/issues/52
Diffstat (limited to 'tests/test_api.py')
-rw-r--r--tests/test_api.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index 95559986..be7cc83e 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -116,7 +116,7 @@ class ApiTest(CoverageTest):
# Measure without the stdlib.
cov1 = coverage.Coverage()
- assert cov1.config.cover_pylib == False
+ assert cov1.config.cover_pylib is False
self.start_import_stop(cov1, "mymain")
# some statements were marked executed in mymain.py
@@ -1108,9 +1108,9 @@ class ImmutableConfigTest(CoverageTest):
self.make_file("simple.py", "a = 1")
cov = coverage.Coverage()
self.start_import_stop(cov, "simple")
- assert cov.get_option("report:show_missing") == False
+ assert cov.get_option("report:show_missing") is False
cov.report(show_missing=True)
- assert cov.get_option("report:show_missing") == False
+ assert cov.get_option("report:show_missing") is False
class RelativePathTest(CoverageTest):