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 7831667 commit 7a4846dCopy full SHA for 7a4846d
tests/test_thread.py
@@ -63,6 +63,17 @@ def test_ignoreSpecificError():
63
new.join()
64
assert len(new.errors) == 0
65
66
+def test_ignoreAll():
67
+ """This test is for testing that all errors are ignored properly"""
68
+ new = Thread(
69
+ target = _dummy_raiseException,
70
+ args = [ValueError()],
71
+ ignore_errors = [Exception],
72
+ )
73
+ new.start()
74
+ new.join()
75
+ assert len(new.errors) == 0
76
+
77
78
79
0 commit comments