summaryrefslogtreecommitdiff
path: root/changelog/2798.bugfix.rst
blob: dc24a724c32e3b3274d3292e7288c4b8861a72ba (plain)
1
2
3
Reset ``sys.last_type``, ``sys.last_value`` and ``sys.last_traceback`` before each test executes. Those attributes
are added by pytest during the test run to aid debugging, but were never reset so they would create a leaking
reference to the last failing test's frame which in turn could never be reclaimed by the garbage collector.