Message 85568 - Python tracker (original) (raw)
So, we are talking about adding a feature that could cause problem whether cleanup is performed before tearDown or after tearDown. Don't we risk confusing developers who are not familiar with the cleanup order?
Well, we could do both. Call cleanups before tearDown (all the while popping them), call tearDown, and call the new cleanups.
If the cleanup machinery is written carefully enough, you may even be able to add another cleanup during a cleanup :-)