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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
25cdb974
Commit
25cdb974
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
f2f86ed8
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 @
25cdb974
...
@@ -116,54 +116,10 @@ class ZEOConfigTest(ConfigTestBase):
...
@@ -116,54 +116,10 @@ class ZEOConfigTest(ConfigTestBase):
self
.
assertRaises
(
ClientDisconnected
,
self
.
_test
,
cfg
)
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
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
ZODBConfigTest
))
suite
.
addTest
(
unittest
.
makeSuite
(
ZODBConfigTest
))
# Only run the ZEO test if ZEO is available
suite
.
addTest
(
unittest
.
makeSuite
(
ZEOConfigTest
))
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
))
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