Closed
Description
Bug report
Bug description:
This test can take many minutes to complete, on systems where pwd.getpwall()
might return a very large number of entries.
./python -m test -v test_posixpath -m test_expanduser_pwd2
I don't see any obvious benefit to this test running on literally every single entry.
My proposal is to simply limit the iteration in the test to the first 10 (or any other arbitrary reasonable number) entries (see attached PR).
Another option is to put the test behind some resource to allow skipping it easily without needing to patch.
CPython versions tested on:
CPython main branch, 3.13, 3.12, 3.14
Operating systems tested on:
Linux