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
bbdb0e31
Commit
bbdb0e31
authored
Apr 22, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python 2.1 compatibility.
parent
a0c8ed70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/ZODB/tests/testZODB.py
src/ZODB/tests/testZODB.py
+5
-3
No files found.
src/ZODB/tests/testZODB.py
View file @
bbdb0e31
...
...
@@ -11,6 +11,8 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
from
__future__
import
nested_scopes
import
unittest
import
ZODB
...
...
@@ -250,14 +252,14 @@ class ZODBTests(unittest.TestCase):
real_data2
=
r2
[
"real_data"
]
index2
=
r2
[
"index"
]
real_data
[
"b"
][
"indexed_value"
]
=
False
real_data
[
"b"
][
"indexed_value"
]
=
0
del
index
[
1
][
"b"
]
index
[
0
][
"b"
]
=
1
cn2
.
getTransaction
().
commit
()
del
real_data2
[
"a"
]
try
:
del
index2
[
False
][
"a"
]
del
index2
[
0
][
"a"
]
except
ReadConflictError
:
# This is the crux of the text. Ignore the error.
pass
...
...
@@ -277,7 +279,7 @@ class ZODBTests(unittest.TestCase):
def
checkIndependent
(
self
):
self
.
obj
=
Independent
()
self
.
readConflict
(
shouldFail
=
False
)
self
.
readConflict
(
shouldFail
=
0
)
def
checkNotIndependent
(
self
):
self
.
obj
=
DecoyIndependent
()
...
...
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