trunk/73d892fece8a67bf1c52a2051cc32552a479a9a1: [py3.14] Inline test.support helpers in test_ordered_set (#199670)
- PyTorch: 1880 events in the last 90 days
- PyTorch: 1856th Release in the last 90 days
- Previous: earlier the same day · trunk/7c7dfb52efac8ff1d2e0ee2d2ae6e01952036217
What happened
Summary: test_ordered_set.py imports CPython's test.support for two helpers, check_free_after_iterating and gc_collect . Not every Python distribution ships the test package, and where it is missing the whole module fails to import, so no test in it runs: ImportError: cannot import name 'support' from 'test' (unknown location) Copy check_free_after_iterating into the test file and call gc.collect() directly. The alt…
Summary assembled by rule from the sources below