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
86905eea
Commit
86905eea
authored
Nov 16, 2008
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing test cleanup
parent
27a4c700
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+5
-0
src/ZEO/tests/test_cache.py
src/ZEO/tests/test_cache.py
+1
-0
src/ZODB/FileStorage/zconfig.txt
src/ZODB/FileStorage/zconfig.txt
+1
-0
src/ZODB/scripts/referrers.txt
src/ZODB/scripts/referrers.txt
+3
-0
No files found.
src/ZEO/tests/testZEO.py
View file @
86905eea
...
...
@@ -1014,6 +1014,8 @@ def tpc_finish_error():
... self.client = client
... def connect(self, sync=1):
... self.client.notifyConnected(Connection(self.client))
... def close(self):
... pass
>>> class StorageServer:
... should_fail = True
...
...
@@ -1089,6 +1091,9 @@ def tpc_finish_error():
... else: print "Should have failed"
finish
connection closed
>>> cs.close()
connection closed
"""
slow_test_classes
=
[
...
...
src/ZEO/tests/test_cache.py
View file @
86905eea
...
...
@@ -73,6 +73,7 @@ class CacheTests(ZODB.tests.util.TestCase):
self
.
cache
=
ZEO
.
cache
.
ClientCache
(
size
=
1024
**
2
)
def
tearDown
(
self
):
self
.
cache
.
close
()
if
self
.
cache
.
path
:
os
.
remove
(
self
.
cache
.
path
)
ZODB
.
tests
.
util
.
TestCase
.
tearDown
(
self
)
...
...
src/ZODB/FileStorage/zconfig.txt
View file @
86905eea
...
...
@@ -128,6 +128,7 @@ pack-gc
>>> fs.pack(time.time(), 42, gc=True)
42 True True
>>> fs.close()
...
...
src/ZODB/scripts/referrers.txt
View file @
86905eea
...
...
@@ -38,3 +38,6 @@ Now we'll get the storage and compute the referrers:
>>> referrers[boid] == [(roid, s1), (aoid, s2)]
True
.. Cleanup
>>> db.close()
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