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

zopefoundation / ZODB / 23421885197
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: perrinjerome/classFactory
DEFAULT BRANCH: master
Ran 23 Mar 2026 04:48AM 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

23 Mar 2026 04:46AM UTC coverage: 83.779% (-0.002%) from 83.781%
23421885197

Pull #421

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.
Pull Request #421: Add class_factory parameter to DB and ZConfig class-factory option

2444 of 3546 branches covered (68.92%)

14 of 17 new or added lines in 4 files covered. (82.35%)

13367 of 15955 relevant lines covered (83.78%)

0.84 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
79.73
-0.27% src/ZODB/config.py
Jobs
ID Job ID Ran Files Coverage
1 23421885197.1 23 Mar 2026 04:48AM UTC 116
83.78
GitHub Action Run
Source Files on build 23421885197
  • 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
  • Pull Request #421
  • PR Base - master (#21562672041)
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