8000 Fix unittests on Windows · python/asyncio@e7a1078 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit e7a1078

Browse files
committed
Fix unittests on Windows
1 parent 374930d commit e7a1078

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_base_events.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,10 +1194,10 @@ def test_create_connection_service_name(self, m_socket):
11941194
m_socket.getaddrinfo = socket.getaddrinfo
11951195
sock = m_socket.socket.return_value
11961196

1197-
self.loop.add_reader = mock.Mock()
1198-
self.loop.add_reader._is_coroutine = False
1199-
self.loop.add_writer = mock.Mock()
1200-
self.loop.add_writer._is_coroutine = False
1197+
self.loop._add_reader = mock.Mock()
1198+
self.loop._add_reader._is_coroutine = False
1199+
self.loop._add_writer = mock.Mock()
1200+
self.loop._add_writer._is_coroutine = False
12011201

12021202
for service, port in ('http', 80), (b'http', 80):
12031203
coro = self.loop.create_connection(asyncio.Protocol,

0 commit comments

Comments
 (0)
0