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
Joshua
zodb
Commits
d31fda3c
Commit
d31fda3c
authored
Jan 16, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force test to fail if FileStorage doesn't raise StorageError
for a redundant pack.
parent
1073b217
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/ZODB/tests/PackableStorage.py
src/ZODB/tests/PackableStorage.py
+6
-6
No files found.
src/ZODB/tests/PackableStorage.py
View file @
d31fda3c
...
...
@@ -34,6 +34,7 @@ from ZODB.referencesf import referencesf
from
ZODB.tests.MinPO
import
MinPO
from
ZODB.tests.StorageTestBase
import
snooze
from
ZODB.POSException
import
ConflictError
,
StorageError
from
ZODB.FileStorage
import
FileStorage
from
ZODB.tests.MTStorage
import
TestThread
...
...
@@ -473,13 +474,12 @@ class PackableUndoStorage(PackableStorageBase):
packt2
=
time
.
time
()
db
.
pack
(
packt2
)
# BDBStorage allows the second pack, but doesn't lose data.
try
:
if
isinstance
(
self
.
_storage
,
FileStorage
):
# If FileStorage performed a redundant pack, it would
# remove the lost_oid.
self
.
assertRaises
(
StorageError
,
db
.
pack
,
packt1
)
else
:
db
.
pack
(
packt1
)
except
StorageError
:
pass
# This object would be removed by the second pack, even though
# it is reachable.
self
.
_storage
.
load
(
lost_oid
,
""
)
def
checkPackUndoLog
(
self
):
...
...
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