Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Zope
Commits
13510438
Commit
13510438
authored
Apr 03, 2001
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
class CommitAndRead can inherit from test_create.BaseFramework for
more code sharing. DBHOME is unused, remove.
parent
c702bc72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
29 deletions
+2
-29
lib/python/BDBStorage/tests/test_zodb_simple.py
lib/python/BDBStorage/tests/test_zodb_simple.py
+2
-29
No files found.
lib/python/BDBStorage/tests/test_zodb_simple.py
View file @
13510438
...
...
@@ -6,38 +6,11 @@ import os
import
errno
import
time
import
unittest
DBHOME
=
'test-db'
import
test_create
class
CommitAndRead
(
unittest
.
TestCase
):
# Never tear down the test framework since we want the database support
# files to persist. MasterSetup will take care of cleaning things up when
# we're done.
def
setUp
(
self
):
from
ZODB
import
DB
self
.
_dbhome
=
DBHOME
try
:
os
.
mkdir
(
self
.
_dbhome
)
except
OSError
,
e
:
if
e
.
errno
<>
errno
.
EEXIST
:
raise
try
:
self
.
_storage
=
self
.
ConcreteStorage
(
self
.
_dbhome
)
self
.
_db
=
DB
(
self
.
_storage
)
self
.
_conn
=
self
.
_db
.
open
()
self
.
_root
=
self
.
_conn
.
root
()
except
:
self
.
tearDown
()
raise
def
tearDown
(
self
):
for
file
in
os
.
listdir
(
DBHOME
):
os
.
unlink
(
os
.
path
.
join
(
DBHOME
,
file
))
os
.
removedirs
(
DBHOME
)
class
CommitAndRead
(
test_create
.
BaseFramework
):
def
checkCommit
(
self
):
from
Persistence
import
PersistentMapping
...
...
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