This commit is contained in:
Inada Naoki
2018-12-06 19:33:31 +09:00
parent c754b25080
commit a33e1c3836
10 changed files with 585 additions and 599 deletions

View File

@ -20,7 +20,7 @@ class test_MySQLdb(dbapi20.DatabaseAPI20Test):
test for an exception if the statement cannot return a
result set. MySQL always returns a result set; it's just that
some things return empty result sets."""
def test_fetchall(self):
con = self._connect()
try:
@ -66,10 +66,10 @@ class test_MySQLdb(dbapi20.DatabaseAPI20Test):
'cursor.fetchall should return an empty list if '
'a select query returns no rows'
)
finally:
con.close()
def test_fetchone(self):
con = self._connect()
try:
@ -148,7 +148,7 @@ class test_MySQLdb(dbapi20.DatabaseAPI20Test):
def help_nextset_setUp(self,cur):
''' Should create a procedure called deleteme
that returns two result sets, first the
that returns two result sets, first the
number of rows in booze then "name from booze"
'''
sql="""
@ -200,6 +200,6 @@ class test_MySQLdb(dbapi20.DatabaseAPI20Test):
finally:
con.close()
if __name__ == '__main__':
unittest.main()