Skip to content

Commit f94478e

Browse files
authored
Merge pull request #377 from martindurant/small_close
slightly simplify close test
2 parents 1a6eb06 + 6361244 commit f94478e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

s3fs/tests/test_s3fs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)