We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61277fc commit 618a3c9Copy full SHA for 618a3c9
tests/test_simpleflow/test_canvas.py
@@ -410,7 +410,7 @@ def test_handle_not_all(self):
410
agg_ex = AggregateException([ZeroDivisionError(), None, memory_error])
411
412
def my_handler(ex, a, b=None):
413
- return type(ex) == ZeroDivisionError
+ return isinstance(ex, ZeroDivisionError)
414
415
with self.assertRaises(AggregateException) as new_agg_ex:
416
agg_ex.handle(my_handler, 1, b=True)
0 commit comments