From 65b5830a4d13d65c3bb314dd4894d565a16ceb9b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 31 Jan 2021 09:12:43 -0500 Subject: 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 --- tests/test_plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_plugins.py') diff --git a/tests/test_plugins.py b/tests/test_plugins.py index 3472522b..e706ef36 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -403,7 +403,7 @@ class GoodFileTracerTest(FileTracerTest): analysis = cov._analyze("foo_7.html") assert analysis.statements == {1, 2, 3, 4, 5, 6, 7} # Plugins don't do branch coverage yet. - assert analysis.has_arcs() == True + assert analysis.has_arcs() is True assert analysis.arc_possibilities() == [] assert analysis.missing == {1, 2, 3, 6, 7} -- cgit v1.2.1