Skip to content

Commit 160d148

Browse files
xoviatflub
andauthored
fmt
Co-authored-by: Floris Bruynooghe <flub@devork.be>
1 parent 20f7a3a commit 160d148

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pytest_timeout.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,8 @@ def timeout_setup(item):
198198
return
199199

200200
timeout_method = params.method
201-
if timeout_method == "signal" and (
202-
threading.current_thread() is not threading.main_thread()
203-
):
201+
if (timeout_method == "signal"
202+
and threading.current_thread() is not threading.main_thread()):
204203
timeout_method = "thread"
205204

206205
if timeout_method == "signal":

0 commit comments

Comments
 (0)