Skip to content

Commit abcc19f

Browse files
authored
Fix #220: Allow filelock test thread to catch any exceptions (#221)
* Allow filelock test thread to catch any exceptions * Change except to make Flake happy * Make catch `Exception` not `BaseException` --------- Co-authored-by: TheMatt2 <[email protected]>
1 parent e02b493 commit abcc19f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_filelock.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def __init__(self, target: Callable[[], None], name: str) -> None:
185185
def run(self) -> None:
186186
try:
187187
super().run()
188-
except RuntimeError: # pragma: no cover
188+
except Exception: # pragma: no cover
189189
self.ex = sys.exc_info() # pragma: no cover
190190

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

0 commit comments

Comments
 (0)