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
8d5938be
Commit
8d5938be
authored
Jan 25, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dependency on StorageTestBase setUp() and tearDown().
parent
a8b6c61d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
src/ZODB/tests/Corruption.py
src/ZODB/tests/Corruption.py
+1
-4
src/ZODB/tests/testDemoStorage.py
src/ZODB/tests/testDemoStorage.py
+3
-1
src/ZODB/tests/testMappingStorage.py
src/ZODB/tests/testMappingStorage.py
+3
-1
No files found.
src/ZODB/tests/Corruption.py
View file @
8d5938be
...
...
@@ -10,16 +10,13 @@ import ZODB, ZODB.FileStorage
from
StorageTestBase
import
StorageTestBase
class
FileStorageCorruptTests
(
StorageTestBase
):
__super_setUp
=
StorageTestBase
.
setUp
__super_tearDown
=
StorageTestBase
.
tearDown
def
setUp
(
self
):
self
.
__super_setUp
()
self
.
path
=
tempfile
.
mktemp
()
self
.
_storage
=
ZODB
.
FileStorage
.
FileStorage
(
self
.
path
,
create
=
1
)
def
tearDown
(
self
):
self
.
_
_super_tearDown
()
self
.
_
storage
.
close
()
for
ext
in
''
,
'.old'
,
'.tmp'
,
'.lock'
,
'.index'
:
path
=
self
.
path
+
ext
if
os
.
path
.
exists
(
path
):
...
...
src/ZODB/tests/testDemoStorage.py
View file @
8d5938be
...
...
@@ -11,9 +11,11 @@ class DemoStorageTests(StorageTestBase.StorageTestBase,
):
def
setUp
(
self
):
StorageTestBase
.
StorageTestBase
.
setUp
(
self
)
self
.
_storage
=
ZODB
.
DemoStorage
.
DemoStorage
()
def
tearDown
(
self
):
self
.
_storage
.
close
()
def
test_suite
():
suite
=
unittest
.
makeSuite
(
DemoStorageTests
,
'check'
)
return
suite
...
...
src/ZODB/tests/testMappingStorage.py
View file @
8d5938be
...
...
@@ -9,9 +9,11 @@ class MappingStorageTests(StorageTestBase.StorageTestBase,
):
def
setUp
(
self
):
StorageTestBase
.
StorageTestBase
.
setUp
(
self
)
self
.
_storage
=
ZODB
.
MappingStorage
.
MappingStorage
()
def
tearDown
(
self
):
self
.
_storage
.
close
()
def
test_suite
():
suite
=
unittest
.
makeSuite
(
MappingStorageTests
,
'check'
)
return
suite
...
...
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