Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
04efaecc
Commit
04efaecc
authored
Jul 24, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added gc.collect() calls to avoid spurious test failures
parent
03b81838
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/ZODB/tests/dbopen.txt
src/ZODB/tests/dbopen.txt
+1
-1
src/ZODB/tests/testCache.py
src/ZODB/tests/testCache.py
+1
-1
No files found.
src/ZODB/tests/dbopen.txt
View file @
04efaecc
...
@@ -330,7 +330,7 @@ resources (like RDB connections), for the duration.
...
@@ -330,7 +330,7 @@ resources (like RDB connections), for the duration.
>>> st = Storage()
>>> st = Storage()
>>> db = DB(st, pool_size=2)
>>> db = DB(st, pool_size=2)
>>> conn0 = db.open()
>>> conn0 = db.open()
>>> conn0.cacheMinimize() # See fix84.rst
>>> conn0.cacheMinimize()
; import gc; _ = gc.collect()
# See fix84.rst
>>> len(conn0._cache) # empty now
>>> len(conn0._cache) # empty now
0
0
>>> import transaction
>>> import transaction
...
...
src/ZODB/tests/testCache.py
View file @
04efaecc
...
@@ -444,7 +444,7 @@ def test_basic_cache_size_estimation():
...
@@ -444,7 +444,7 @@ def test_basic_cache_size_estimation():
>>> import ZODB.MappingStorage
>>> import ZODB.MappingStorage
>>> db = ZODB.MappingStorage.DB()
>>> db = ZODB.MappingStorage.DB()
>>> conn = db.open()
>>> conn = db.open()
>>> conn.cacheMinimize() # See fix84.rst
>>> conn.cacheMinimize()
; _ = gc.collect()
# See fix84.rst
>>> def check_cache_size(cache, expected):
>>> def check_cache_size(cache, expected):
... actual = cache.total_estimated_size
... actual = cache.total_estimated_size
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment