@@ -48,7 +48,7 @@ async def __aenter__(self):
4848 self .parent .did_it = 1
4949 if sys .version_info >= (3 , 7 ):
5050 assert sniffio .current_async_library () == "asyncio"
51- await asyncio .sleep (0.01 , loop = self . loop )
51+ await asyncio .sleep (0.01 )
5252 self .parent .did_it = 2
5353 return self
5454
@@ -193,7 +193,7 @@ def dly_trio(seen):
193193 @pytest .mark .trio
194194 async def test_trio_asyncio (self , loop ):
195195 async def dly_asyncio (seen ):
196- await asyncio .sleep (0.01 , loop = loop )
196+ await asyncio .sleep (0.01 )
197197 seen .flag |= 1
198198 return 4
199199
@@ -280,7 +280,7 @@ def err_trio_sync():
280280 @pytest .mark .trio
281281 async def test_trio_asyncio_error (self , loop ):
282282 async def err_asyncio ():
283- await asyncio .sleep (0.01 , loop = loop )
283+ await asyncio .sleep (0.01 )
284284 raise RuntimeError ("I has an owie" )
285285
286286 with pytest .raises (RuntimeError ) as err :
@@ -317,7 +317,7 @@ async def cancelled_trio(seen):
317317 async def test_trio_asyncio_cancel_out (self , loop ):
318318 async def cancelled_asyncio (seen ):
319319 seen .flag |= 1
320- await asyncio .sleep (0.01 , loop = loop )
320+ await asyncio .sleep (0.01 )
321321 f = asyncio .Future (loop = loop )
322322 f .cancel ()
323323 return f .result () # raises error
@@ -404,7 +404,7 @@ async def test_trio_asyncio_cancel_in(self, loop):
404404 async def in_asyncio (started , seen ):
405405 started .set ()
406406 try :
407- await asyncio .sleep (9999 , loop = loop )
407+ await asyncio .sleep (9999 )
408408 except asyncio .CancelledError :
409409 seen .flag |= 1
410410 except trio .Cancelled :
@@ -527,7 +527,7 @@ def err_asyncio():
527527 async def test_trio_asyncio_generator (self , loop ):
528528 async def dly_asyncio ():
529529 yield 1
530- await asyncio .sleep (0.01 , loop = loop )
530+ await asyncio .sleep (0.01 )
531531 yield 2
532532
533533 with test_utils .deprecate (self ):
@@ -571,7 +571,7 @@ async def cancel_soon(nursery):
571571 async def test_trio_asyncio_iterator (self , loop ):
572572 async def slow_nums ():
573573 for n in range (1 , 6 ):
574- await asyncio .sleep (0.01 , loop = loop )
574+ await asyncio .sleep (0.01 )
575575 yield n
576576
577577 sum = 0
@@ -583,7 +583,7 @@ async def slow_nums():
583583 async def test_trio_asyncio_iterator_depr (self , loop ):
584584 async def slow_nums ():
585585 for n in range (1 , 6 ):
586- await asyncio .sleep (0.01 , loop = loop )
586+ await asyncio .sleep (0.01 )
587587 yield n
588588
589589 sum = 0
0 commit comments