]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tests: Address flake8 issue
authorStephen Finucane <stephen@that.guru>
Tue, 1 Aug 2023 16:26:17 +0000 (17:26 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 1 Aug 2023 16:26:17 +0000 (17:26 +0100)
Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/tests/test_series.py

index d3e20e08e7b0c5b6792d0c8a39f7324a1b3fadfd..ce11404279d36e047e7e9b0d0cf3a3280baaace0 100644 (file)
@@ -35,9 +35,9 @@ class _BaseTestCase(TestCase):
         mbox = mailbox.mbox(os.path.join(TEST_SERIES_DIR, name), create=False)
         for msg in mbox:
             obj = parser.parse_mail(msg, project.listid)
-            if type(obj) == models.Cover:
+            if type(obj) is models.Cover:
                 results[0].append(obj)
-            elif type(obj) == models.Patch:
+            elif type(obj) is models.Patch:
                 results[1].append(obj)
             else:
                 results[2].append(obj)