[issue21133] unittest discover should allow option to run each package separately

2014-04-04 Thread Michael Foord
Michael Foord added the comment: This is only an issue if a test package pollutes its environment without cleaning up (puts mocks in place that it doesn't remove for example). Fixing this would require discover to use multiple processes to run tests, which isn't going to happen (at least not s

[issue21133] unittest discover should allow option to run each package separately

2014-04-04 Thread Éric Araujo
Éric Araujo added the comment: > imports from previous unittests corrupt the namespace of subsequent unittests > and lead to failures > (usually if there are mock objects in previously imported unit tests) Can you tell more about this? I haven’t run into this issue with large test suites that

[issue21133] unittest discover should allow option to run each package separately

2014-04-02 Thread the mulhern
New submission from the mulhern: You can run "python -m unittest discover " and the unittests discovered by discover will be run. This is nice. However, it is actually desirable to run each unittest package individually, rather than in the same interpreter instance. When run via discover, impo