Skip to content

Commit e89c3b1

Browse files
cdce8pfrenck
authored andcommitted
Ignore lingering pycares shutdown thread (home-assistant#146733)
1 parent d4ffeed commit e89c3b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,10 @@ def verify_cleanup(
382382
# Verify no threads where left behind.
383383
threads = frozenset(threading.enumerate()) - threads_before
384384
for thread in threads:
385-
assert isinstance(thread, threading._DummyThread) or thread.name.startswith(
386-
"waitpid-"
385+
assert (
386+
isinstance(thread, threading._DummyThread)
387+
or thread.name.startswith("waitpid-")
388+
or "_run_safe_shutdown_loop" in thread.name
387389
)
388390

389391
try:

0 commit comments

Comments
 (0)