mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
test01_join(): Fix a test failure when run with "python -O". The
setting of sCursor happened in an assert.
This commit is contained in:
parent
f239c6d537
commit
e676c5ef3e
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue