Files
pytest2/changelog/6947.bugfix.rst
Bruno Oliveira 5c2e96c0e6 Fix cleanup functions not being invoked on test failures
Also delay calling tearDown() when --pdb is given, so users still have
access to the instance variables (which are usually cleaned up during tearDown())
when debugging.

Fix #6947
2020-05-02 15:26:55 -03:00

2 lines
111 B
ReStructuredText

Fix regression where functions registered with ``TestCase.addCleanup`` were not being called on test failures.