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
Kirill Smelkov
ZODB
Commits
0b97216e
Commit
0b97216e
authored
Jan 24, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove uses of self._transaction.
parent
56b49f11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/ZODB/tests/BasicStorage.py
src/ZODB/tests/BasicStorage.py
+5
-5
No files found.
src/ZODB/tests/BasicStorage.py
View file @
0b97216e
...
@@ -71,7 +71,7 @@ class BasicStorage:
...
@@ -71,7 +71,7 @@ class BasicStorage:
def
checkSerialIsNoneForInitialRevision
(
self
):
def
checkSerialIsNoneForInitialRevision
(
self
):
eq
=
self
.
assertEqual
eq
=
self
.
assertEqual
oid
=
self
.
_storage
.
new_oid
()
oid
=
self
.
_storage
.
new_oid
()
txn
=
self
.
_transaction
txn
=
Transaction
()
self
.
_storage
.
tpc_begin
(
txn
)
self
.
_storage
.
tpc_begin
(
txn
)
# Use None for serial. Don't use _dostore() here because that coerces
# Use None for serial. Don't use _dostore() here because that coerces
# serial=None to serial=ZERO.
# serial=None to serial=ZERO.
...
@@ -120,11 +120,11 @@ class BasicStorage:
...
@@ -120,11 +120,11 @@ class BasicStorage:
def
checkWriteAfterAbort
(
self
):
def
checkWriteAfterAbort
(
self
):
oid
=
self
.
_storage
.
new_oid
()
oid
=
self
.
_storage
.
new_oid
()
self
.
_storage
.
tpc_begin
(
self
.
_transaction
)
t
=
Transaction
(
)
self
.
_storage
.
store
(
oid
,
ZERO
,
zodb_pickle
(
MinPO
(
5
)),
self
.
_storage
.
tpc_begin
(
t
)
''
,
self
.
_transaction
)
self
.
_storage
.
store
(
oid
,
ZERO
,
zodb_pickle
(
MinPO
(
5
)),
''
,
t
)
# Now abort this transaction
# Now abort this transaction
self
.
_storage
.
tpc_abort
(
self
.
_transaction
)
self
.
_storage
.
tpc_abort
(
t
)
# Now start all over again
# Now start all over again
oid
=
self
.
_storage
.
new_oid
()
oid
=
self
.
_storage
.
new_oid
()
self
.
_dostore
(
oid
=
oid
,
data
=
MinPO
(
6
))
self
.
_dostore
(
oid
=
oid
,
data
=
MinPO
(
6
))
...
...
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