summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_graphlib.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-130914: Make graphlib.TopologicalSorter.prepare() idempotent (#131317)Daniel Pope2025-03-181-1/+13
| | | | | | | Closes #130914: Make graphlib.TopologicalSorter.prepare() idempotent Relax the rules so that `.prepare()` can be called multiple times, provided that no work has been passed out by `.get_ready()` yet.
* no-issue: remove unused import from test_graphlib.py (GH-29853)Adrian Garcia Badaracco2021-11-301-2/+1
|
* bpo-45624: make test_graphlib not depend on the iteration order of sets ↵Carl Friedrich Bolz-Tereick2021-10-281-4/+13
| | | | | | | | (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.
* bpo-17005: Move topological sort functionality to its own module (GH-20558)Pablo Galindo2020-05-311-0/+244
The topological sort functionality that was introduced initially in the functools module has been moved to a new graphlib module to better accommodate the new tools and keep the original scope of the functools module.