Skip to content

Commit

Permalink
+ add missing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeine-addictt committed Nov 14, 2023
1 parent 7831667 commit 7a4846d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ def test_ignoreSpecificError():
new.join()
assert len(new.errors) == 0

def test_ignoreAll():
"""This test is for testing that all errors are ignored properly"""
new = Thread(
target = _dummy_raiseException,
args = [ValueError()],
ignore_errors = [Exception],
)
new.start()
new.join()
assert len(new.errors) == 0




Expand Down

0 comments on commit 7a4846d

Please sign in to comment.