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
89f2dfdc
Commit
89f2dfdc
authored
Feb 20, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove BDBStorage references in the config test.
parent
e6646870
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
45 deletions
+1
-45
src/ZODB/tests/testConfig.py
src/ZODB/tests/testConfig.py
+1
-45
No files found.
src/ZODB/tests/testConfig.py
View file @
89f2dfdc
...
...
@@ -116,54 +116,10 @@ class ZEOConfigTest(ConfigTestBase):
self
.
assertRaises
(
ClientDisconnected
,
self
.
_test
,
cfg
)
class
BDBConfigTest
(
ConfigTestBase
):
def
setUp
(
self
):
self
.
_path
=
tempfile
.
mktemp
()
try
:
os
.
mkdir
(
self
.
_path
)
except
OSError
,
e
:
if
e
.
errno
<>
errno
.
EEXIST
:
raise
def
test_bdbfull_simple
(
self
):
cfg
=
"""
<zodb>
<fullstorage>
envdir %s
</fullstorage>
</zodb>
"""
%
self
.
_path
self
.
_test
(
cfg
)
def
test_bdbminimal_simple
(
self
):
cfg
=
"""
<zodb>
<minimalstorage>
envdir %s
</minimalstorage>
</zodb>
"""
%
self
.
_path
self
.
_test
(
cfg
)
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
ZODBConfigTest
))
# Only run the ZEO test if ZEO is available
try
:
import
ZEO
except
ImportError
:
pass
else
:
suite
.
addTest
(
unittest
.
makeSuite
(
ZEOConfigTest
))
# Only run the Berkeley tests if bsddb is available
try
:
import
BDBStorage
except
ImportError
:
pass
else
:
if
BDBStorage
.
is_available
:
suite
.
addTest
(
unittest
.
makeSuite
(
BDBConfigTest
))
suite
.
addTest
(
unittest
.
makeSuite
(
ZEOConfigTest
))
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