Skip to content

Commit 9924bcb

Browse files
committed
tests: Address flake8 issue
Signed-off-by: Stephen Finucane <stephen@that.guru> (cherry picked from commit d556955)
1 parent 9838450 commit 9924bcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patchwork/tests/test_series.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def _parse_mbox(self, name, counts, project=None):
3535
mbox = mailbox.mbox(os.path.join(TEST_SERIES_DIR, name), create=False)
3636
for msg in mbox:
3737
obj = parser.parse_mail(msg, project.listid)
38-
if type(obj) == models.Cover:
38+
if type(obj) is models.Cover:
3939
results[0].append(obj)
40-
elif type(obj) == models.Patch:
40+
elif type(obj) is models.Patch:
4141
results[1].append(obj)
4242
else:
4343
results[2].append(obj)

0 commit comments

Comments
 (0)