Skip to content

Commit 618a3c9

Browse files
committed
tests: ruff fix
Signed-off-by: Yves Bastide <yves@botify.com>
1 parent 61277fc commit 618a3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_simpleflow/test_canvas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def test_handle_not_all(self):
410410
agg_ex = AggregateException([ZeroDivisionError(), None, memory_error])
411411

412412
def my_handler(ex, a, b=None):
413-
return type(ex) == ZeroDivisionError
413+
return isinstance(ex, ZeroDivisionError)
414414

415415
with self.assertRaises(AggregateException) as new_agg_ex:
416416
agg_ex.handle(my_handler, 1, b=True)

0 commit comments

Comments
 (0)