Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Apr 2, 2023
1 parent 6f2ebb6 commit 6bcbcce
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions zict/tests/test_sieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,8 @@ def __setitem__(self, k, v):
self.data[k] = v

z = Sieve({0: {}, 1: Slow(), 2: Slow()}, selector=lambda k, v: v % 3)
if seed == 0:
z["x"] = 0
elif seed in (1, 2):
block_set[seed].set()
z["x"] = 0
in_set[seed].clear()
block_set[seed].clear()
if seed is not False:
z["x"] = seed

with ThreadPoolExecutor(2) as ex:
futures = {}
Expand Down

0 comments on commit 6bcbcce

Please sign in to comment.