Message 85434 - Python tracker (original) (raw)

Actually let me phrase that differently. standard practice for setUp is super.setUp() my_setup_code()

and tearDown is my_teardown_code() super.tearDown()

because of the LIFO need.

If you imagine that clean ups are being done in the base class teardown, at the end of that method, then it becomes a lot more obvious why it should run after tearDown - because thats the right place, and because many users may be failing to call the base class tearDown which has historically done nothing.