Skip to content

Commit

Permalink
Fix #220: Allow filelock test thread to catch any exceptions (#221)
Browse files Browse the repository at this point in the history
* Allow filelock test thread to catch any exceptions

* Change except to make Flake happy

* Make catch `Exception` not `BaseException`

---------

Co-authored-by: TheMatt2 <TheMatt2@users.noreply.github.com>
  • Loading branch information
TheMatt2 and TheMatt2 committed Apr 5, 2023
1 parent e02b493 commit abcc19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_filelock.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def __init__(self, target: Callable[[], None], name: str) -> None:
def run(self) -> None:
try:
super().run()
except RuntimeError: # pragma: no cover
except Exception: # pragma: no cover
self.ex = sys.exc_info() # pragma: no cover

def join(self, timeout: float | None = None) -> None:
Expand Down

0 comments on commit abcc19f

Please sign in to comment.