Skip to content

Commit

Permalink
Remove redundant use of 'with clean():' (#6852)
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored Aug 8, 2022
1 parent f4b70ae commit bf53760
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions distributed/deploy/tests/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
assert_can_connect_locally_4,
assert_cannot_connect,
captured_logger,
clean,
gen_test,
inc,
raises_with_cause,
Expand Down Expand Up @@ -997,10 +996,9 @@ def test_dont_select_closed_worker(loop):


def test_client_cluster_synchronous(loop):
with clean(threads=False):
with Client(loop=loop, processes=False, dashboard_address=":0") as c:
assert not c.asynchronous
assert not c.cluster.asynchronous
with Client(loop=loop, processes=False, dashboard_address=":0") as c:
assert not c.asynchronous
assert not c.cluster.asynchronous


@gen_test()
Expand Down

0 comments on commit bf53760

Please sign in to comment.