Issue #20455: Add a resolution attribute to IocpProactor (1 ms)

This commit is contained in:
Victor Stinner 2014-01-31 16:26:38 +01:00
parent f2e1768bc1
commit 1506df2655
3 changed files with 4 additions and 0 deletions

View file

@ -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()