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
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
Kirill Smelkov
ZEO
Commits
3289be04
Commit
3289be04
authored
Apr 27, 2004
by
Marius Gedminas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made ZODB test_cache doctests clean up the transaction.
parent
2172f321
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/ZODB/tests/test_cache.py
src/ZODB/tests/test_cache.py
+8
-0
No files found.
src/ZODB/tests/test_cache.py
View file @
3289be04
...
@@ -56,6 +56,10 @@ class CacheTests:
...
@@ -56,6 +56,10 @@ class CacheTests:
def
test_cache
(
self
):
def
test_cache
(
self
):
r"""Test basic cache methods.
r"""Test basic cache methods.
Let's start with a clean transaction
>>> transaction.abort()
>>> RegularObject.init()
>>> RegularObject.init()
>>> db = databaseFromString("<zodb>\n"
>>> db = databaseFromString("<zodb>\n"
... "cache-size 4\n"
... "cache-size 4\n"
...
@@ -114,6 +118,10 @@ class CacheTests:
...
@@ -114,6 +118,10 @@ class CacheTests:
>>> RegularObject.deactivations
>>> RegularObject.deactivations
10
10
Clean up
>>> transaction.abort()
"""
"""
def
test_cache_gc_recalcitrant
(
self
):
def
test_cache_gc_recalcitrant
(
self
):
...
...
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