From: Stephen Finucane Date: Tue, 1 Aug 2023 16:26:17 +0000 (+0100) Subject: tests: Address flake8 issue X-Git-Tag: v3.1.3~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9924bcb47b215fb06ca64e4517e5c629bd09b375;p=thirdparty%2Fpatchwork.git tests: Address flake8 issue Signed-off-by: Stephen Finucane (cherry picked from commit d556955460dc0fcd6f745e80e01dc6607beffe7b) --- diff --git a/patchwork/tests/test_series.py b/patchwork/tests/test_series.py index d3e20e08..ce114042 100644 --- a/patchwork/tests/test_series.py +++ b/patchwork/tests/test_series.py @@ -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)