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
e6679a5e
Commit
e6679a5e
authored
May 18, 2010
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed trailing whitespace.
parent
308a53f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/ZODB/tests/testblob.py
src/ZODB/tests/testblob.py
+5
-5
No files found.
src/ZODB/tests/testblob.py
View file @
e6679a5e
...
@@ -145,7 +145,7 @@ class BlobUndoTests(BlobTestBase):
...
@@ -145,7 +145,7 @@ class BlobUndoTests(BlobTestBase):
# the blob footprint object should exist no longer
# the blob footprint object should exist no longer
self
.
assertRaises
(
KeyError
,
root
.
__getitem__
,
'blob'
)
self
.
assertRaises
(
KeyError
,
root
.
__getitem__
,
'blob'
)
database
.
close
()
database
.
close
()
def
testUndo
(
self
):
def
testUndo
(
self
):
database
=
DB
(
self
.
_storage
)
database
=
DB
(
self
.
_storage
)
connection
=
database
.
open
()
connection
=
database
.
open
()
...
@@ -178,7 +178,7 @@ class BlobUndoTests(BlobTestBase):
...
@@ -178,7 +178,7 @@ class BlobUndoTests(BlobTestBase):
blob
.
consumeFile
(
'consume1'
)
blob
.
consumeFile
(
'consume1'
)
root
[
'blob'
]
=
blob
root
[
'blob'
]
=
blob
transaction
.
commit
()
transaction
.
commit
()
transaction
.
begin
()
transaction
.
begin
()
blob
=
root
[
'blob'
]
blob
=
root
[
'blob'
]
open
(
'consume2'
,
'w'
).
write
(
'this is state 2'
)
open
(
'consume2'
,
'w'
).
write
(
'this is state 2'
)
...
@@ -279,7 +279,7 @@ class RecoveryBlobStorage(BlobTestBase,
...
@@ -279,7 +279,7 @@ class RecoveryBlobStorage(BlobTestBase,
transaction
.
commit
()
transaction
.
commit
()
self
.
_dst
.
copyTransactionsFrom
(
self
.
_storage
)
self
.
_dst
.
copyTransactionsFrom
(
self
.
_storage
)
self
.
compare
(
self
.
_storage
,
self
.
_dst
)
self
.
compare
(
self
.
_storage
,
self
.
_dst
)
def
gc_blob_removes_uncommitted_data
():
def
gc_blob_removes_uncommitted_data
():
"""
"""
...
@@ -335,7 +335,7 @@ Works with savepoints too:
...
@@ -335,7 +335,7 @@ Works with savepoints too:
>>> transaction.commit() # doctest: +ELLIPSIS
>>> transaction.commit() # doctest: +ELLIPSIS
Copied blob file ...
Copied blob file ...
>>> root['blob2'].open().read()
>>> root['blob2'].open().read()
'test2'
'test2'
...
@@ -625,7 +625,7 @@ def storage_reusable_suite(prefix, factory,
...
@@ -625,7 +625,7 @@ def storage_reusable_suite(prefix, factory,
return
factory
(
name
,
blob_dir
)
return
factory
(
name
,
blob_dir
)
test
.
globs
[
'create_storage'
]
=
create_storage
test
.
globs
[
'create_storage'
]
=
create_storage
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
doctest
.
DocFileSuite
(
suite
.
addTest
(
doctest
.
DocFileSuite
(
"blob_connection.txt"
,
"blob_importexport.txt"
,
"blob_connection.txt"
,
"blob_importexport.txt"
,
...
...
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