Message196793
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). |
|
Date |
User |
Action |
Args |
2013-09-02 17:17:17 | eli.bendersky | set | recipients:
+ eli.bendersky, ncoghlan, serhiy.storchaka |
2013-09-02 17:17:17 | eli.bendersky | set | messageid: <1378142237.02.0.163660197957.issue18906@psf.upfronthosting.co.za> |
2013-09-02 17:17:16 | eli.bendersky | link | issue18906 messages |
2013-09-02 17:17:16 | eli.bendersky | create | |
|