Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e676c5ef
Commit
e676c5ef
authored
Jul 21, 2003
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test01_join(): Fix a test failure when run with "python -O". The
setting of sCursor happened in an assert.
parent
f239c6d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Lib/bsddb/test/test_join.py
Lib/bsddb/test/test_join.py
+4
-1
No files found.
Lib/bsddb/test/test_join.py
View file @
e676c5ef
...
...
@@ -85,7 +85,10 @@ class JoinTestCase(unittest.TestCase):
try
:
# lets look up all of the red Products
sCursor
=
secDB
.
cursor
()
assert
sCursor
.
set
(
'red'
)
# Don't do the .set() in an assert, or you can get a bogus failure
# when running python -O
tmp
=
sCursor
.
set
(
'red'
)
assert
tmp
# FIXME: jCursor doesn't properly hold a reference to its
# cursors, if they are closed before jcursor is used it
...
...
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