Re: [Python-Dev] Regression test coupling

2011-11-08 Thread Vinay Sajip
Nick Coghlan gmail.com> writes: > Given the other things regrtest cleans up between tests, I'm not sure > why it doesn't also kill TESTFN, though. Well, there's a function regrtest.cleanup_test_droppings which aims to do just this, and it's called in a finally: block from regrtest.runtest. It's

Re: [Python-Dev] Regression test coupling

2011-11-08 Thread Nick Coghlan
On Tue, Nov 8, 2011 at 8:02 PM, Vinay Sajip 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 (h

[Python-Dev] Regression test coupling

2011-11-08 Thread Vinay Sajip
I ran into an error today related to the use of support.TESTFN throughout the regression test suite. In my Windows tests, test_base64 passed, but left a file (named by support.TESTFN) lying around: 'test_base64' left behind file '@test_3532_tmp' Much later in the run, a set of unrelated tests s