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
42f71de0
Commit
42f71de0
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
c0f1cce5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
trunk/src/ZODB/tests/Corruption.py
trunk/src/ZODB/tests/Corruption.py
+1
-4
trunk/src/ZODB/tests/testDemoStorage.py
trunk/src/ZODB/tests/testDemoStorage.py
+3
-1
trunk/src/ZODB/tests/testMappingStorage.py
trunk/src/ZODB/tests/testMappingStorage.py
+3
-1
No files found.
trunk/src/ZODB/tests/Corruption.py
View file @
42f71de0
...
@@ -10,16 +10,13 @@ import ZODB, ZODB.FileStorage
...
@@ -10,16 +10,13 @@ import ZODB, ZODB.FileStorage
from
StorageTestBase
import
StorageTestBase
from
StorageTestBase
import
StorageTestBase
class
FileStorageCorruptTests
(
StorageTestBase
):
class
FileStorageCorruptTests
(
StorageTestBase
):
__super_setUp
=
StorageTestBase
.
setUp
__super_tearDown
=
StorageTestBase
.
tearDown
def
setUp
(
self
):
def
setUp
(
self
):
self
.
__super_setUp
()
self
.
path
=
tempfile
.
mktemp
()
self
.
path
=
tempfile
.
mktemp
()
self
.
_storage
=
ZODB
.
FileStorage
.
FileStorage
(
self
.
path
,
create
=
1
)
self
.
_storage
=
ZODB
.
FileStorage
.
FileStorage
(
self
.
path
,
create
=
1
)
def
tearDown
(
self
):
def
tearDown
(
self
):
self
.
_
_super_tearDown
()
self
.
_
storage
.
close
()
for
ext
in
''
,
'.old'
,
'.tmp'
,
'.lock'
,
'.index'
:
for
ext
in
''
,
'.old'
,
'.tmp'
,
'.lock'
,
'.index'
:
path
=
self
.
path
+
ext
path
=
self
.
path
+
ext
if
os
.
path
.
exists
(
path
):
if
os
.
path
.
exists
(
path
):
...
...
trunk/src/ZODB/tests/testDemoStorage.py
View file @
42f71de0
...
@@ -11,9 +11,11 @@ class DemoStorageTests(StorageTestBase.StorageTestBase,
...
@@ -11,9 +11,11 @@ class DemoStorageTests(StorageTestBase.StorageTestBase,
):
):
def
setUp
(
self
):
def
setUp
(
self
):
StorageTestBase
.
StorageTestBase
.
setUp
(
self
)
self
.
_storage
=
ZODB
.
DemoStorage
.
DemoStorage
()
self
.
_storage
=
ZODB
.
DemoStorage
.
DemoStorage
()
def
tearDown
(
self
):
self
.
_storage
.
close
()
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
makeSuite
(
DemoStorageTests
,
'check'
)
suite
=
unittest
.
makeSuite
(
DemoStorageTests
,
'check'
)
return
suite
return
suite
...
...
trunk/src/ZODB/tests/testMappingStorage.py
View file @
42f71de0
...
@@ -9,9 +9,11 @@ class MappingStorageTests(StorageTestBase.StorageTestBase,
...
@@ -9,9 +9,11 @@ class MappingStorageTests(StorageTestBase.StorageTestBase,
):
):
def
setUp
(
self
):
def
setUp
(
self
):
StorageTestBase
.
StorageTestBase
.
setUp
(
self
)
self
.
_storage
=
ZODB
.
MappingStorage
.
MappingStorage
()
self
.
_storage
=
ZODB
.
MappingStorage
.
MappingStorage
()
def
tearDown
(
self
):
self
.
_storage
.
close
()
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
makeSuite
(
MappingStorageTests
,
'check'
)
suite
=
unittest
.
makeSuite
(
MappingStorageTests
,
'check'
)
return
suite
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