We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78c9004 commit 3251556Copy full SHA for 3251556
changelog/2798.bugfix.rst
@@ -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