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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
4b0e9511
Commit
4b0e9511
authored
Mar 02, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use builtin type names
parent
1565e139
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/ZODB/tests/testCache.py
src/ZODB/tests/testCache.py
+3
-4
No files found.
src/ZODB/tests/testCache.py
View file @
4b0e9511
...
@@ -18,10 +18,9 @@ purposes. It acts like a memo for unpickling. It also keeps recent
...
@@ -18,10 +18,9 @@ purposes. It acts like a memo for unpickling. It also keeps recent
objects in memory under the assumption that they may be used again.
objects in memory under the assumption that they may be used again.
"""
"""
import
gc
import
time
import
time
import
types
import
unittest
import
unittest
import
gc
import
ZODB
import
ZODB
import
ZODB.MappingStorage
import
ZODB.MappingStorage
...
@@ -81,8 +80,8 @@ class DBMethods(CacheTestBase):
...
@@ -81,8 +80,8 @@ class DBMethods(CacheTestBase):
def
checkCacheDetail
(
self
):
def
checkCacheDetail
(
self
):
for
name
,
count
in
self
.
db
.
cacheDetail
():
for
name
,
count
in
self
.
db
.
cacheDetail
():
self
.
assert_
(
isinstance
(
name
,
types
.
StringType
))
self
.
assert_
(
isinstance
(
name
,
str
))
self
.
assert_
(
isinstance
(
count
,
types
.
IntType
))
self
.
assert_
(
isinstance
(
count
,
int
))
def
checkCacheExtremeDetail
(
self
):
def
checkCacheExtremeDetail
(
self
):
expected
=
[
'conn_no'
,
'id'
,
'oid'
,
'rc'
,
'klass'
,
'state'
]
expected
=
[
'conn_no'
,
'id'
,
'oid'
,
'rc'
,
'klass'
,
'state'
]
...
...
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