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
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
ZEO
Commits
28806a6d
Commit
28806a6d
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
3356f09a
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 @
28806a6d
...
@@ -34,6 +34,7 @@ from ZODB.referencesf import referencesf
...
@@ -34,6 +34,7 @@ from ZODB.referencesf import referencesf
from
ZODB.tests.MinPO
import
MinPO
from
ZODB.tests.MinPO
import
MinPO
from
ZODB.tests.StorageTestBase
import
snooze
from
ZODB.tests.StorageTestBase
import
snooze
from
ZODB.POSException
import
ConflictError
,
StorageError
from
ZODB.POSException
import
ConflictError
,
StorageError
from
ZODB.FileStorage
import
FileStorage
from
ZODB.tests.MTStorage
import
TestThread
from
ZODB.tests.MTStorage
import
TestThread
...
@@ -473,13 +474,12 @@ class PackableUndoStorage(PackableStorageBase):
...
@@ -473,13 +474,12 @@ class PackableUndoStorage(PackableStorageBase):
packt2
=
time
.
time
()
packt2
=
time
.
time
()
db
.
pack
(
packt2
)
db
.
pack
(
packt2
)
# BDBStorage allows the second pack, but doesn't lose data.
if
isinstance
(
self
.
_storage
,
FileStorage
):
try
:
# If FileStorage performed a redundant pack, it would
# remove the lost_oid.
self
.
assertRaises
(
StorageError
,
db
.
pack
,
packt1
)
else
:
db
.
pack
(
packt1
)
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
,
""
)
self
.
_storage
.
load
(
lost_oid
,
""
)
def
checkPackUndoLog
(
self
):
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