mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #20455: Add a resolution attribute to IocpProactor (1 ms)
This commit is contained in:
parent
f2e1768bc1
commit
1506df2655
3 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,7 @@ class ProactorSocketTransportTests(unittest.TestCase):
|
|||
def setUp(self):
|
||||
self.loop = test_utils.TestLoop()
|
||||
self.proactor = unittest.mock.Mock()
|
||||
self.proactor.resolution = 1e-3
|
||||
self.loop._proactor = self.proactor
|
||||
self.protocol = test_utils.make_test_protocol(asyncio.Protocol)
|
||||
self.sock = unittest.mock.Mock(socket.socket)
|
||||
|
@ -342,6 +343,7 @@ class BaseProactorEventLoopTests(unittest.TestCase):
|
|||
def setUp(self):
|
||||
self.sock = unittest.mock.Mock(socket.socket)
|
||||
self.proactor = unittest.mock.Mock()
|
||||
self.proactor.resolution = 1e-3
|
||||
|
||||
self.ssock, self.csock = unittest.mock.Mock(), unittest.mock.Mock()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue