Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 9, 2022
1 parent 4509deb commit d6e82ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nbclient/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,14 @@ def test_async_parallel_notebooks(capfd, tmpdir):
res = notebook_resources()

with modified_env({"NBEXECUTE_TEST_PARALLEL_TMPDIR": str(tmpdir)}):

async def run_tasks():
tasks = [async_run_notebook(input_file.format(label=label), opts, res) for label in ("A", "B")]
tasks = [
async_run_notebook(input_file.format(label=label), opts, res)
for label in ("A", "B")
]
await asyncio.gather(*tasks)

asyncio.run(run_tasks())

captured = capfd.readouterr()
Expand All @@ -418,6 +423,7 @@ def test_many_async_parallel_notebooks(capfd):
async def run_tasks():
tasks = [async_run_notebook(input_file, opts, res) for i in range(4)]
await asyncio.gather(*tasks)

asyncio.run(run_tasks())

captured = capfd.readouterr()
Expand Down

0 comments on commit d6e82ab

Please sign in to comment.