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
6665dd6a
Commit
6665dd6a
authored
May 22, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tearDown(): Call delStorage() to clean up.
parent
e56f46e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+6
-1
No files found.
src/ZEO/tests/testZEO.py
View file @
6665dd6a
...
...
@@ -3,6 +3,7 @@
import
asyncore
import
os
import
random
import
sys
import
tempfile
import
time
import
types
...
...
@@ -139,6 +140,7 @@ class GenericTests(ZEOTestBase,
self
.
running
=
0
self
.
_server
.
close
()
os
.
waitpid
(
self
.
_pid
,
0
)
self
.
delStorage
()
self
.
__super_tearDown
()
def
checkLargeUpdate
(
self
):
...
...
@@ -165,6 +167,9 @@ class PersistentCacheTests(ZEOTestBase):
__super_setUp
=
StorageTestBase
.
StorageTestBase
.
setUp
__super_tearDown
=
StorageTestBase
.
StorageTestBase
.
tearDown
ports
=
range
(
29000
,
30000
,
10
)
# enough for 100 tests
random
.
shuffle
(
ports
)
def
setUp
(
self
):
"""Start a ZEO server using a Unix domain socket
...
...
@@ -174,7 +179,7 @@ class PersistentCacheTests(ZEOTestBase):
self
.
running
=
1
self
.
__fs_base
=
tempfile
.
mktemp
()
fs
=
FileStorage
(
self
.
__fs_base
,
create
=
1
)
self
.
addr
=
''
,
random
.
randrange
(
2000
,
3000
)
self
.
addr
=
''
,
self
.
ports
.
pop
(
)
pid
,
exit
=
forker
.
start_zeo_server
(
fs
,
self
.
addr
)
self
.
_pid
=
pid
self
.
_server
=
exit
...
...
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