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

bluedynamics / zope.interface / 23723487425
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: fix-pydict-getitem-exception-swallowing
DEFAULT BRANCH: master
Ran 30 Mar 2026 01:05AM UTC
Jobs 1
Files 50
Run time 1min
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

30 Mar 2026 01:02AM UTC coverage: 99.059%. Remained the same
23723487425

push

github

jensens
Replace all PyDict_GetItem with exception-safe alternatives

PyDict_GetItem silently swallows ALL exceptions from __hash__/__eq__,
causing isOrExtends() to return False instead of raising TypeError for
unhashable objects, and silently swallowing MemoryError. CPython 3.14
now warns about this at runtime.

Changes:
- SB_extends (line 335): PyDict_GetItem -> PyDict_Contains
- IB__adapt__ (line 795): PyDict_GetItem -> PyDict_Contains
- IB__call__ (line 906): PyDict_GetItem on tp_dict -> PyDict_Contains
  with PyType_GetDict() on 3.13+ for free-threading safety
- Polyfill _PyDict_GetItemRef: PyDict_GetItem -> PyDict_GetItemWithError

PyDict_Contains is also faster: it skips the PyErr_Fetch/PyErr_Restore
error-state dance that PyDict_GetItem does on every call (~12 memory
operations saved per call on the hottest path).

Fixes #357

2445 of 2474 branches covered (98.83%)

Branch coverage included in aggregate %.

32 of 32 new or added lines in 1 file covered. (100.0%)

12193 of 12303 relevant lines covered (99.11%)

7.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23723487425.1 30 Mar 2026 01:08AM UTC 50
99.06
Source Files on build 23723487425
  • Tree
  • List 50
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 5e86bb29 on github
  • Prev Build on fix-pydict-getitem-exception-swallowing (#23723426149)
  • Next Build on fix-pydict-getitem-exception-swallowing (#25096605641)
  • Delete
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