Skip to content

Commit

Permalink
test: there cannot be assumption of the order matching
Browse files Browse the repository at this point in the history
with 3.13 it became failing consistently!  and really there is nothing
which should force original order. So we can just test overall set, and potentially that
second yielded (str) is after first (int) but that is not worth testing imho
  • Loading branch information
yarikoptic committed Dec 14, 2024
1 parent 9675290 commit d8eed50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datalad/support/tests/test_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def consumer(i):

# we auto-detect generator function producer
pc = ProducerConsumer(producer, consumer, jobs=jobs)
assert_equal(list(pc), [0, 1, 2, "0", "1", "4"])
assert_equal(set(pc), {0, 1, 2, "0", "1", "4"})


def test_producer_future_key(jobs):
Expand Down

0 comments on commit d8eed50

Please sign in to comment.