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
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
Nicolas Wavrant
ZODB
Commits
35f80c80
Commit
35f80c80
authored
Apr 22, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python 2.1 compatibility.
parent
07766aca
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 @
35f80c80
...
...
@@ -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