[Python-Dev] Regression test coupling (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Tue Nov 8 13:37:06 CET 2011


On Tue, Nov 8, 2011 at 8:02 PM, Vinay Sajip <vinay_sajip at yahoo.co.uk> wrote:

Sorry if this has come up before, but why do we couple the tests in this way, so that failure to clean up in one test causes drive-by failures in other, unrelated tests?

Personally, I just use the tempfile module in tests that I write (historically via test.script_helper.temp_dir, these days via the public tempfile.TemporaryDirectory API).

Given the other things regrtest cleans up between tests, I'm not sure why it doesn't also kill TESTFN, though.

Cheers, Nick.

-- Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-Dev mailing list