This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eli.bendersky
Recipients eli.bendersky, ncoghlan, serhiy.storchaka
Date 2013-09-02.17:17:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378142237.02.0.163660197957.issue18906@psf.upfronthosting.co.za>
In-reply-to
Content
There were numerous discussions and issues in the past about the cross-test dependencies that sometimes exist because some tests need to muck with import caches (both on the Python and C level). Some examples:

http://mail.python.org/pipermail/python-dev/2013-January/123409.html
http://mail.python.org/pipermail/python-dev/2013-August/127766.html

Issue #15651 is an example of a hack that has to stay in the code to allow tests to pass. Other things are also difficult - such as simulating situations where some optional modules don't exist (like pyexpat).

----

I suggest to add a capability to regrtest that will allow certain tests to request always being run inside a subprocess. Most of the infrastructure is already in place, since this is what regrtest uses to run with -jN today.

An alternative would be to add some test.support utility to help with this, but then test execution would not be uniform between -j1 and -jN and also some things would be difficult to track, such as -R executions (currently all -R runs of a single test have to be within a single process for the refcount tracking to work).
History
Date User Action Args
2013-09-02 17:17:17eli.benderskysetrecipients: + eli.bendersky, ncoghlan, serhiy.storchaka
2013-09-02 17:17:17eli.benderskysetmessageid: <1378142237.02.0.163660197957.issue18906@psf.upfronthosting.co.za>
2013-09-02 17:17:16eli.benderskylinkissue18906 messages
2013-09-02 17:17:16eli.benderskycreate