functional tests leak memory
Bug #251273 reported by
Marius Gedminas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
All functional tests in Zope-3-based apps leak memory by keeping references to all in-memory databases created for each test. This was observed with zope.app.testing 3.4.1.
FunctionalTestS
The object graph keeping the DB objects in memory after running 5 functional tests can be seen at http://
The fix is to unregister the IDatabase utilities in FunctionalTestS
To post a comment you must log in.
Some numbers: on an app I've got here with ~250 functional tests, this patch reduces test runner's memory usage from 500 megs down to 110 megs, and reduces the test run time from 29 minutes down to 21 minutes.