]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45624: make test_graphlib not depend on the iteration order of sets (GH-29233...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 28 Oct 2021 21:15:01 +0000 (14:15 -0700)
committerGitHub <noreply@github.com>
Thu, 28 Oct 2021 21:15:01 +0000 (23:15 +0200)
commiteccb753ae6e1459dc697d5408e1082fff4f6d8f7
treed201dda5baffb74db2e9c9d2681d0bf41a43ca76
parent823b3e39ae12884d5aa3c98341a41b2d6f19d329
bpo-45624: make test_graphlib not depend on the iteration order of sets (GH-29233) (GH-29293)

the current test depended on integer sets being iterated on in a certain
fixed order. That order is different on PyPy (insertion based) and could
change in CPython in the future in theory. Make the test robust against
a different iteration order by sorting.
(cherry picked from commit 7401694807fc6b5f7b35ff73c06f4bb852e02946)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
Lib/test/test_graphlib.py