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
b5fd430c
Commit
b5fd430c
authored
Dec 04, 2008
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some typos in some error handling code.
parent
c7413b44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
src/ZODB/DemoStorage.py
src/ZODB/DemoStorage.py
+2
-2
src/ZODB/tests/testDemoStorage.py
src/ZODB/tests/testDemoStorage.py
+15
-0
No files found.
src/ZODB/DemoStorage.py
View file @
b5fd430c
...
...
@@ -167,7 +167,7 @@ class DemoStorage(object):
try
:
return
self
.
base
.
loadBlob
(
oid
,
serial
)
except
AttributeError
:
if
not
zope
.
interface
.
IBlobStorage
.
provi
dBy
(
self
.
base
):
if
not
ZODB
.
interfaces
.
IBlobStorage
.
provide
dBy
(
self
.
base
):
raise
ZODB
.
POSException
.
POSKeyError
(
oid
,
serial
)
raise
except
AttributeError
:
...
...
@@ -182,7 +182,7 @@ class DemoStorage(object):
try
:
return
self
.
base
.
openCommittedBlobFile
(
oid
,
serial
,
blob
)
except
AttributeError
:
if
not
zope
.
interface
.
IBlobStorage
.
provi
dBy
(
self
.
base
):
if
not
ZODB
.
interfaces
.
IBlobStorage
.
provide
dBy
(
self
.
base
):
raise
ZODB
.
POSException
.
POSKeyError
(
oid
,
serial
)
raise
except
AttributeError
:
...
...
src/ZODB/tests/testDemoStorage.py
View file @
b5fd430c
...
...
@@ -156,6 +156,21 @@ def testSomeDelegation():
"""
def
blob_pos_key_error_with_non_blob_base
():
"""
>>> storage = ZODB.DemoStorage.DemoStorage()
>>> storage.loadBlob(ZODB.utils.p64(1), ZODB.utils.p64(1))
Traceback (most recent call last):
...
POSKeyError: 0x01
>>> storage.openCommittedBlobFile(ZODB.utils.p64(1), ZODB.utils.p64(1))
Traceback (most recent call last):
...
POSKeyError: 0x01
"""
def
test_suite
():
suite
=
unittest
.
TestSuite
((
...
...
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