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
Kirill Smelkov
ZODB
Commits
a1f2ca82
Commit
a1f2ca82
authored
Jun 16, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be more thorough about deleting ZEC files.
parent
b05ad8e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/ZEO/tests/ConnectionTests.py
src/ZEO/tests/ConnectionTests.py
+6
-6
No files found.
src/ZEO/tests/ConnectionTests.py
View file @
a1f2ca82
...
@@ -86,6 +86,7 @@ class CommonSetupTearDown(StorageTestBase):
...
@@ -86,6 +86,7 @@ class CommonSetupTearDown(StorageTestBase):
self
.
_pids
=
[]
self
.
_pids
=
[]
self
.
_servers
=
[]
self
.
_servers
=
[]
self
.
conf_paths
=
[]
self
.
conf_paths
=
[]
self
.
caches
=
[]
self
.
_newAddr
()
self
.
_newAddr
()
self
.
startServer
()
self
.
startServer
()
...
@@ -105,13 +106,11 @@ class CommonSetupTearDown(StorageTestBase):
...
@@ -105,13 +106,11 @@ class CommonSetupTearDown(StorageTestBase):
# Not in Windows Python until 2.3
# Not in Windows Python until 2.3
for
pid
in
self
.
_pids
:
for
pid
in
self
.
_pids
:
os
.
waitpid
(
pid
,
0
)
os
.
waitpid
(
pid
,
0
)
for
i
in
0
,
1
:
for
c
in
self
.
caches
:
path
=
"c1-test-%d.zec"
%
i
for
i
in
0
,
1
:
if
os
.
path
.
exists
(
path
):
path
=
"c1-test-%d.zec"
%
i
try
:
if
os
.
path
.
exists
(
path
)
:
os
.
unlink
(
path
)
os
.
unlink
(
path
)
except
os
.
error
:
pass
self
.
__super_tearDown
()
self
.
__super_tearDown
()
def
_newAddr
(
self
):
def
_newAddr
(
self
):
...
@@ -127,6 +126,7 @@ class CommonSetupTearDown(StorageTestBase):
...
@@ -127,6 +126,7 @@ class CommonSetupTearDown(StorageTestBase):
def
openClientStorage
(
self
,
cache
=
''
,
cache_size
=
200000
,
wait
=
1
,
def
openClientStorage
(
self
,
cache
=
''
,
cache_size
=
200000
,
wait
=
1
,
read_only
=
0
,
read_only_fallback
=
0
,
read_only
=
0
,
read_only_fallback
=
0
,
username
=
None
,
password
=
None
,
realm
=
None
):
username
=
None
,
password
=
None
,
realm
=
None
):
self
.
caches
.
append
(
cache
)
storage
=
TestClientStorage
(
self
.
addr
,
storage
=
TestClientStorage
(
self
.
addr
,
client
=
cache
,
client
=
cache
,
cache_size
=
cache_size
,
cache_size
=
cache_size
,
...
...
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