Skip to content

Commit 3251556

Browse files
committed
Add changelog entry for pytest-dev#2798
1 parent 78c9004 commit 3251556

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

changelog/2798.bugfix.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Reset ``sys.last_type``, ``sys.last_value`` and ``sys.last_traceback`` before each test executes. Those attributes
2+
are added by pytest during the test run to aid in debugging, but were never reset so they would create a leaking
3+
reference to the last failing test's frame which in turn could never be reclaimed by the garbage collector.

0 commit comments

Comments
 (0)