File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1661,20 +1661,20 @@ async def _():
16611661 loop = asyncio .get_event_loop ()
16621662 s3 = S3FileSystem (anon = False ,
16631663 asynchronous = True ,
1664- loop = loop ,
1665- client_kwargs = {"region_name" : "eu-west-1" })
1664+ loop = loop )
16661665 await s3 ._connect ()
16671666
16681667 fn = test_bucket_name + "/afile"
16691668
16701669 async def async_wrapper ():
1671- coros = [asyncio .ensure_future (s3 ._get_file (fn , '/nonexistent/a/b/c' ), loop = loop ) for _ in range (3 )]
1670+ coros = [asyncio .ensure_future (s3 ._get_file (fn , '/nonexistent/a/b/c' ), loop = loop )
1671+ for _ in range (3 )]
16721672 completed , pending = await asyncio .wait (coros )
16731673 for future in completed :
16741674 with pytest .raises (OSError ):
16751675 future .result ()
16761676
1677- await asyncio .gather (* [async_wrapper () for __ in range (5 )])
1677+ await asyncio .gather (* [async_wrapper () for __ in range (2 )])
16781678
16791679 await s3 ._s3 .close ()
16801680
You can’t perform that action at this time.
0 commit comments