Skip to content

Commit b9d31b5

Browse files
committed
Fix tests
1 parent e89985f commit b9d31b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_usage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def test_async_to_sync_usage(func):
102102
total += 0.1
103103
if total >= MAXSECONDS:
104104
break
105-
os.kill(process.pid, signal.SIGINT)
105+
if process.is_alive():
106+
os.kill(process.pid, signal.SIGINT)
106107
process.join()
107108
assert called.value

0 commit comments

Comments
 (0)