> - use test.script_helper.run_python rather than rolling your own
> run_command (or, at least, just make run_command a thin wrapper around
> run_python). I've been trying to trim down the number of different
> ways the test suite launches interpreter subprocesses for testing
> purposes, and script_helper also does a bit of extra cleanup to try to
> eliminate false alarms regarding reference leaks.
After a quick grep, it seems script_helper is really in the minority
(it's only used in three test files) while ad hoc calls to subprocess
with sys.executable are all over the place. I'd rather open a separate
feature request for that new script_helper function than convert all
uses of subprocess in this issue.
> - update the description of gc.DEBUG_UNCOLLECTABLE in the docs to
> specifically mention that the complete list of uncollectable objects
> will also be printed at interpreter shutdown.
Ah, indeed. Thanks! |