A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-November/114376.html below:

[Python-Dev] Regression test coupling

[Python-Dev] Regression test couplingNick 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4