Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 707
    • Issues 707
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPyPyPy
  • pypypypy
  • Issues
  • #2532
Closed
Open
Issue created Apr 06, 2017 by Bitbucket Importer@bitbucket_importerMaintainer

PyPy3: AttributeError: 'Frame' object has no attribute 'clear'

Created originally on Bitbucket by jamadden (Jason Madden)

Running PyPy3-3.5-5.7.1-beta from pyenv on Ubuntu 14.04 (Travis CI) for the gevent unit tests. When there is code that uses TestCase.assertRaises, the following stack trace may be raised (https://travis-ci.org/gevent/gevent/jobs/219394025#L456):

    File "test__event.py", line 146, in test_set_exception
      self.assertRaises(greentest.ExpectedException, s1.get)
    File "/home/travis/.runtimes/versions/pypy3.5_571/lib-python/3/unittest/case.py", line 728, in assertRaises
      return context.handle('assertRaises', args, kwargs)
    File "/home/travis/.runtimes/versions/pypy3.5_571/lib-python/3/unittest/case.py", line 177, in handle
      callable_obj(*args, **kwargs)
    File "/home/travis/.runtimes/versions/pypy3.5_571/lib-python/3/unittest/case.py", line 201, in __exit__
      traceback.clear_frames(tb)
    File "/home/travis/.runtimes/versions/pypy3.5_571/lib-python/3/traceback.py", line 216, in clear_frames
      tb.tb_frame.clear()
  AttributeError: 'Frame' object has no attribute 'clear'

The docs indicated that clear_frames was added in 3.4 and the call from unittest was added in issue 9815 slightly later.

(Apologies if this is a known issue, if so I didn't find it anywhere.)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking