镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Refleak in LOAD_SUPER_ATTR_ATTR #104413

Closed
Closed

Description

@JelleZijlstra

The buildbots show a refleak in test_super. I narrowed it down to this:

"""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.

Linked PRs

Activity

  1. added a commit that references this issue on May 12, 2023
  2. JelleZijlstra commented on May 12, 2023

    @JelleZijlstra
    MemberAuthor

    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.

  3. added a commit that references this issue on May 12, 2023
  4. added a commit that references this issue on May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions