Commit 2e63eb47 authored by Jim Fulton's avatar Jim Fulton

Make client_asyncore_thread_has_name less brittle.

parent 8f39958f
...@@ -1227,9 +1227,9 @@ def client_asyncore_thread_has_name(): ...@@ -1227,9 +1227,9 @@ def client_asyncore_thread_has_name():
""" """
>>> addr, _ = start_server() >>> addr, _ = start_server()
>>> db = ZEO.DB(addr) >>> db = ZEO.DB(addr)
>>> len([t for t in threading.enumerate() >>> any(t for t in threading.enumerate()
... if ' zeo client networking thread' in t.getName()]) ... if ' zeo client networking thread' in t.getName())
1 True
>>> db.close() >>> db.close()
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment