Skip to content

Commit 7a4846d

Browse files
+ add missing test case
1 parent 7831667 commit 7a4846d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_thread.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ def test_ignoreSpecificError():
6363
new.join()
6464
assert len(new.errors) == 0
6565

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+
6677

6778

6879

0 commit comments

Comments
 (0)