[issue45624] test_graphlib.py depends on iteration order of sets

Carl Friedrich Bolz-Tereick report at bugs.python.org
Wed Oct 27 07:04:08 EDT 2021


Carl Friedrich Bolz-Tereick <cfbolz at gmx.de> added the comment:

here's the traceback running on pypy3.9-alpha:

======================================================================
FAIL: test_simple_cases (test.test_graphlib.TestTopologicalSort)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cfbolz/projects/small-commits-pypy/lib-python/3/test/test_graphlib.py", line 39, in test_simple_cases
    [(3, 5, 7), (11, 8), (2, 10, 9)],
  File "/home/cfbolz/projects/small-commits-pypy/lib-python/3/test/test_graphlib.py", line 19, in _test_graph
    self.assertEqual(list(static_order_with_groups(ts)), list(expected))
AssertionError: Lists differ: [(3, 7, 5), (8, 11), (2, 9, 10)] != [(3, 5, 7), (11, 8), (2, 10, 9)]

First differing element 0:
(3, 7, 5)
(3, 5, 7)

- [(3, 7, 5), (8, 11), (2, 9, 10)]
+ [(3, 5, 7), (11, 8), (2, 10, 9)]

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45624>
_______________________________________


More information about the Python-bugs-list mailing list