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

zopefoundation / ZODB / 24342270933
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: 6.3
DEFAULT BRANCH: master
Ran 13 Apr 2026 12:04PM UTC
Jobs 1
Files 116
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

13 Apr 2026 12:02PM UTC coverage: 83.803% (+0.02%) from 83.781%
24342270933

push

github

perrinjerome
Add class_factory parameter to DB and ZConfig class-factory option

DB.__init__() opens a connection to verify the root object exists,
and that connection is returned to the pool for future reuse.
Connections capture the classFactory reference at creation time
(in Connection.__init__ via ObjectReader), so setting db.classFactory
after DB.__init__() does not apply to connections already in the pool.

This is a problem for Zope, which overrides DB.classFactory after
construction to provide graceful handling of broken/uninstalled objects.
The first connection handed out after startup may silently use the
wrong class factory.

Add a class_factory parameter to DB.__init__() that is set before any
connection is opened, and a corresponding class-factory option to the
ZConfig database configuration schema. This allows frameworks like
Zope to pass the class factory at construction time.

2445 of 3546 branches covered (68.95%)

22 of 22 new or added lines in 4 files covered. (100.0%)

13375 of 15960 relevant lines covered (83.8%)

0.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24342270933.1 13 Apr 2026 12:04PM UTC 116
83.8
GitHub Action Run
Source Files on build 24342270933
  • Tree
  • List 116
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 6ab9beea on github
  • Prev Build on master (#21562672041)
  • Next Build on perrinjerome/classFactory (#24342293564)
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