I recently learned about the threading_helper, module in the private test package CPython ships.
Is there any problem with factoring it out into its own pip-installable project, assuming I keep the PSF license? It seems like it might be generally useful as a test dependency for projects that want to write better multithreaded tests.
I think the test module isn’t routinely installed with Python (because it’s really only used for testing Python itself) so a typical user wouldn’t have it.
I don’t see a problem. We’ve suggested people do similar for the PEP 594 removed batteries, and there’s a few packages out there that backport stdlib features for older Python versions.