mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +08:00
Format
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user