• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agronholm / typeguard / 7527929117
95%

Build:
DEFAULT BRANCH: master
Ran 15 Jan 2024 11:04AM UTC
Jobs 1
Files 13
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Jan 2024 11:03AM UTC coverage: 97.887% (+0.003%) from 97.884%
7527929117

push

github

web-flow
Avoid creating ref cycles (#408)

By storing previously raised exceptions inside a local, this code created ref cycles that kept all locals in all calling stack frames alive.

This is because exceptions hold references to their tracebacks, which hold references to the relevant frames, which holds a reference to the local errors dict that holds references to the exceptions. See https://peps.python.org/pep-0344/#open-issue-garbage-collection and https://peps.python.org/pep-3110/#rationale

This breaks the cycle by deleting the local when we raise, so frames are destroyed by the normal reference counting mechanism.

This fixes some resource exhaustion issues I encountered at work.

1899 of 1940 relevant lines covered (97.89%)

5.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7527929117.1 15 Jan 2024 11:04AM UTC 0
97.89
GitHub Action Run
Source Files on build 7527929117
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #7527929117
  • fe8e3bc0 on github
  • Prev Build on master (#7324947506)
  • Next Build on master (#7533949530)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc