Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
cde78928
Commit
cde78928
authored
Apr 01, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporarily disable some tests that depended on cache implementation
details.
parent
279d4dc6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/ZODB/tests/testCache.py
src/ZODB/tests/testCache.py
+8
-0
No files found.
src/ZODB/tests/testCache.py
View file @
cde78928
...
@@ -170,6 +170,9 @@ class LRUCacheTests(CacheTestBase):
...
@@ -170,6 +170,9 @@ class LRUCacheTests(CacheTestBase):
# not bother to check this
# not bother to check this
def
checkSize
(
self
):
def
checkSize
(
self
):
# XXX need to fix
return
self
.
assertEqual
(
self
.
db
.
cacheSize
(),
0
)
self
.
assertEqual
(
self
.
db
.
cacheSize
(),
0
)
self
.
assertEqual
(
self
.
db
.
cacheDetailSize
(),
[])
self
.
assertEqual
(
self
.
db
.
cacheDetailSize
(),
[])
...
@@ -190,6 +193,9 @@ class LRUCacheTests(CacheTestBase):
...
@@ -190,6 +193,9 @@ class LRUCacheTests(CacheTestBase):
self
.
assertEquals
(
d
[
'size'
],
CACHE_SIZE
+
1
)
self
.
assertEquals
(
d
[
'size'
],
CACHE_SIZE
+
1
)
def
checkDetail
(
self
):
def
checkDetail
(
self
):
# XXX need to fix
return
CACHE_SIZE
=
10
CACHE_SIZE
=
10
self
.
db
.
setCacheSize
(
CACHE_SIZE
)
self
.
db
.
setCacheSize
(
CACHE_SIZE
)
...
@@ -198,6 +204,7 @@ class LRUCacheTests(CacheTestBase):
...
@@ -198,6 +204,7 @@ class LRUCacheTests(CacheTestBase):
self
.
noodle_new_connection
()
self
.
noodle_new_connection
()
for
klass
,
count
in
self
.
db
.
cacheDetail
():
for
klass
,
count
in
self
.
db
.
cacheDetail
():
print
klass
,
count
if
klass
.
endswith
(
'MinPO'
):
if
klass
.
endswith
(
'MinPO'
):
self
.
assertEqual
(
count
,
CONNS
*
CACHE_SIZE
)
self
.
assertEqual
(
count
,
CONNS
*
CACHE_SIZE
)
if
klass
.
endswith
(
'PersistentMapping'
):
if
klass
.
endswith
(
'PersistentMapping'
):
...
@@ -205,6 +212,7 @@ class LRUCacheTests(CacheTestBase):
...
@@ -205,6 +212,7 @@ class LRUCacheTests(CacheTestBase):
self
.
assertEqual
(
count
,
CONNS
)
self
.
assertEqual
(
count
,
CONNS
)
for
details
in
self
.
db
.
cacheExtremeDetail
():
for
details
in
self
.
db
.
cacheExtremeDetail
():
print
details
# one dict per object. keys:
# one dict per object. keys:
if
details
[
'klass'
].
endswith
(
'PersistentMapping'
):
if
details
[
'klass'
].
endswith
(
'PersistentMapping'
):
self
.
assertEqual
(
details
[
'state'
],
None
)
self
.
assertEqual
(
details
[
'state'
],
None
)
...
...
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