]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45624: make test_graphlib not depend on the iteration order of sets (GH-29233)
authorCarl Friedrich Bolz-Tereick <cfbolz@gmx.de>
Thu, 28 Oct 2021 20:01:35 +0000 (22:01 +0200)
committerGitHub <noreply@github.com>
Thu, 28 Oct 2021 20:01:35 +0000 (22:01 +0200)
commit7401694807fc6b5f7b35ff73c06f4bb852e02946
tree251e1548d8f1070c9b7c939c8301cb0a66b4d753
parent03db1bbfd2d3f5a343c293b2f0e09a1e962df7ea
bpo-45624: make test_graphlib not depend on the iteration order of sets (GH-29233)

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.
Lib/test/test_graphlib.py