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
nexedi
ZODB
Commits
b7e27555
Commit
b7e27555
authored
Aug 23, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Python 2.x-isms so that tests run under Python 1.5.2
parent
933086e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
src/ZODB/tests/IteratorStorage.py
src/ZODB/tests/IteratorStorage.py
+1
-1
src/ZODB/tests/StorageTestBase.py
src/ZODB/tests/StorageTestBase.py
+2
-2
src/ZODB/tests/Synchronization.py
src/ZODB/tests/Synchronization.py
+6
-4
No files found.
src/ZODB/tests/IteratorStorage.py
View file @
b7e27555
...
...
@@ -23,4 +23,4 @@ class IteratorStorage:
assert
rec
.
serial
==
revid
assert
rec
.
version
==
''
assert
zodb_unpickle
(
rec
.
data
)
==
MinPO
(
val
)
val
+=
1
val
=
val
+
1
src/ZODB/tests/StorageTestBase.py
View file @
b7e27555
...
...
@@ -53,8 +53,8 @@ def zodb_unpickle(data):
try
:
klass
=
ns
[
klassname
]
except
KeyError
:
print
>>
sys
.
stderr
,
"can't find %s in %s"
%
(
klassname
,
repr
(
ns
))
sys
.
stderr
.
write
(
"can't find %s in %s"
%
(
klassname
,
repr
(
ns
)
))
inst
=
klass
()
else
:
raise
ValueError
,
"expected class info: %s"
%
repr
(
klass_info
)
...
...
src/ZODB/tests/Synchronization.py
View file @
b7e27555
...
...
@@ -59,15 +59,17 @@ TID = "\000" * 8
class
SynchronizedStorage
:
def
verifyCommitting
(
self
,
callable
,
*
args
):
self
.
assertRaises
(
StorageTransactionError
,
callable
*
args
)
##
def verifyCommitting(self, callable, *args):
##
self.assertRaises(StorageTransactionError, callable *args)
def
verifyNotCommitting
(
self
,
callable
,
*
args
):
self
.
assertRaises
(
StorageTransactionError
,
callable
,
*
args
)
args
=
(
StorageTransactionError
,
callable
)
+
args
apply
(
self
.
assertRaises
,
args
)
def
verifyWrongTrans
(
self
,
callable
,
*
args
):
self
.
_storage
.
tpc_begin
(
self
.
_transaction
)
self
.
assertRaises
(
StorageTransactionError
,
callable
,
*
args
)
args
=
(
StorageTransactionError
,
callable
)
+
args
apply
(
self
.
assertRaises
,
args
)
def
checkAbortVersionNotCommitting
(
self
):
self
.
verifyNotCommitting
(
self
.
_storage
.
abortVersion
,
...
...
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