mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Ignore lingering pycares shutdown thread (#146733)
This commit is contained in:
parent
704118b3d0
commit
10874af19a
@ -382,8 +382,10 @@ def verify_cleanup(
|
||||
# Verify no threads where left behind.
|
||||
threads = frozenset(threading.enumerate()) - threads_before
|
||||
for thread in threads:
|
||||
assert isinstance(thread, threading._DummyThread) or thread.name.startswith(
|
||||
"waitpid-"
|
||||
assert (
|
||||
isinstance(thread, threading._DummyThread)
|
||||
or thread.name.startswith("waitpid-")
|
||||
or "_run_safe_shutdown_loop" in thread.name
|
||||
)
|
||||
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user