mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-40275: Adding threading_helper submodule in test.support (GH-20263)
This commit is contained in:
parent
7d80b35af1
commit
e80697d687
46 changed files with 483 additions and 428 deletions
|
@ -33,6 +33,7 @@ from asyncio import selector_events
|
|||
from test.test_asyncio import utils as test_utils
|
||||
from test import support
|
||||
from test.support import socket_helper
|
||||
from test.support import threading_helper
|
||||
from test.support import ALWAYS_EQ, LARGEST, SMALLEST
|
||||
|
||||
|
||||
|
@ -706,7 +707,7 @@ class EventLoopTestsMixin:
|
|||
proto.transport.close()
|
||||
lsock.close()
|
||||
|
||||
support.join_thread(thread)
|
||||
threading_helper.join_thread(thread)
|
||||
self.assertFalse(thread.is_alive())
|
||||
self.assertEqual(proto.state, 'CLOSED')
|
||||
self.assertEqual(proto.nbytes, len(message))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue