]> 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:14:37 +0000 (14:14 -0700)
committerGitHub <noreply@github.com>
Thu, 28 Oct 2021 21:14:37 +0000 (23:14 +0200)
commit67a1abb6aab3b3ce40eb3fdc0af73179ab436a3a
tree19492eedad62cf14fbed5f1956864db3ed335fe8
parentd6623c3ddb9a0e5ffed81253bd40f75c3c662f1a
bpo-45624: make test_graphlib not depend on the iteration order of sets (GH-29233) (GH-29292)

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