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
7de001c5
Commit
7de001c5
authored
Jan 25, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dependence on StorageTestBase setUp() and tearDown().
parent
6bff4058
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/ZODB/tests/testFileStorage.py
src/ZODB/tests/testFileStorage.py
+2
-4
No files found.
src/ZODB/tests/testFileStorage.py
View file @
7de001c5
...
@@ -39,11 +39,10 @@ class FileStorageTests(
...
@@ -39,11 +39,10 @@ class FileStorageTests(
'FileStorageTests.fs'
,
**
kwargs
)
'FileStorageTests.fs'
,
**
kwargs
)
def
setUp
(
self
):
def
setUp
(
self
):
StorageTestBase
.
StorageTestBase
.
setUp
(
self
)
self
.
open
(
create
=
1
)
self
.
open
(
create
=
1
)
def
tearDown
(
self
):
def
tearDown
(
self
):
StorageTestBase
.
StorageTestBase
.
tearDown
(
self
)
self
.
_storage
.
close
(
)
for
ext
in
''
,
'.old'
,
'.tmp'
,
'.lock'
,
'.index'
:
for
ext
in
''
,
'.old'
,
'.tmp'
,
'.lock'
,
'.index'
:
path
=
'FileStorageTests.fs'
+
ext
path
=
'FileStorageTests.fs'
+
ext
if
os
.
path
.
exists
(
path
):
if
os
.
path
.
exists
(
path
):
...
@@ -55,12 +54,11 @@ class FileStorageRecoveryTest(
...
@@ -55,12 +54,11 @@ class FileStorageRecoveryTest(
):
):
def
setUp
(
self
):
def
setUp
(
self
):
StorageTestBase
.
StorageTestBase
.
setUp
(
self
)
self
.
_storage
=
ZODB
.
FileStorage
.
FileStorage
(
'Source.fs'
)
self
.
_storage
=
ZODB
.
FileStorage
.
FileStorage
(
'Source.fs'
)
self
.
_dst
=
ZODB
.
FileStorage
.
FileStorage
(
'Dest.fs'
)
self
.
_dst
=
ZODB
.
FileStorage
.
FileStorage
(
'Dest.fs'
)
def
tearDown
(
self
):
def
tearDown
(
self
):
StorageTestBase
.
StorageTestBase
.
tearDown
(
self
)
self
.
_storage
.
close
(
)
self
.
_dst
.
close
()
self
.
_dst
.
close
()
for
ext
in
''
,
'.old'
,
'.tmp'
,
'.lock'
,
'.index'
:
for
ext
in
''
,
'.old'
,
'.tmp'
,
'.lock'
,
'.index'
:
for
fs
in
'Source'
,
'Dest'
:
for
fs
in
'Source'
,
'Dest'
:
...
...
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