File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,15 @@ async def start_server():
51
51
nonlocal CNT
52
52
CNT = 0
53
53
54
+ addrs = ('127.0.0.1' , 'localhost' )
55
+ if not isinstance (self .loop , uvloop ._Loop ):
56
+ # Hack to let tests run on Python 3.5.0
57
+ # (asyncio doesn't support multiple hosts in 3.5.0)
58
+ addrs = '127.0.0.1'
59
+
54
60
srv = await asyncio .start_server (
55
61
handle_client ,
56
- ( '127.0.0.1' , 'localhost' ) , 0 ,
62
+ addrs , 0 ,
57
63
family = socket .AF_INET ,
58
64
loop = self .loop )
59
65
@@ -356,9 +362,9 @@ async def test_client(addr):
356
362
357
363
t .write (b'OK' ) # We want server to fail.
358
364
359
- self .assertFalse (t .is_closing () )
365
+ self .assertFalse (t ._closing )
360
366
t .abort ()
361
- self .assertTrue (t .is_closing () )
367
+ self .assertTrue (t ._closing )
362
368
363
369
await fut
364
370
You can’t perform that action at this time.
0 commit comments