The buildbots show a refleak in test_super. I narrowed it down to this: ```python """Unit tests for zero-argument super() & related machinery.""" import unittest class TestSuper(unittest.TestCase): def test_attribute_error(self): class C: def method(self): return super().msg try: C().method() except AttributeError: pass if __name__ == "__main__": unittest.main() ``` And found a fix. PR incoming. <!-- gh-linked-prs --> ### Linked PRs * gh-104414 <!-- /gh-linked-prs -->
Activity
pythongh-104413: Fix refleak when super attribute throws AttributeError
JelleZijlstra commentedon May 12, 2023
The buildbot run at https://buildbot.python.org/all/#/builders/75/builds/761 shows several other refleaks, but none of them reproduce on my branch with the patch from #104414, so hopefully that one is enough to get the bots clean.
gh-104413: Fix refleak when super attribute throws AttributeError (#1…
Merge branch 'main' into supermon