anatoly techtonik added the comment:

On Tue, Dec 4, 2012 at 3:43 PM, Michael Foord <rep...@bugs.python.org>wrote:

>
> Well, addSuccessCleanup *would* be an api for adding a cleanup - one that
> is only called on success. So the cleanup is skipped on failure or error,
> which was the original use case.
>

I thought it will be a callback method.

> "Additional consideration that the need to leave the test results is a
> user run time preference, which may only be actual when debugging or
> working on the particular test."
>
> I can't parse that sentence, can you rephrase please. (Did you mean
> another word other than "leave", and I don't understand "may only be
> actual".)
>

Most of the time users need to clean up mess. It mostly during debug
session you need to leave it. So the workaround should be easy and obvious
to enable and disable. Serhiy's method is good. I was too busy with other
stuff to think about it. Thanks.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16599>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to