mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 19:31:54 +08:00
Some (many) tests actually pass now on Python 3. May no longer be backwards-compatible with Python < 2.6.
This commit is contained in:
@ -706,7 +706,7 @@ class DatabaseAPI20Test(unittest.TestCase):
|
||||
that returns two result sets, first the
|
||||
number of rows in booze then "name from booze"
|
||||
'''
|
||||
raise NotImplementedError,'Helper not implemented'
|
||||
raise NotImplementedError('Helper not implemented')
|
||||
#sql="""
|
||||
# create procedure deleteme as
|
||||
# begin
|
||||
@ -718,7 +718,7 @@ class DatabaseAPI20Test(unittest.TestCase):
|
||||
|
||||
def help_nextset_tearDown(self,cur):
|
||||
'If cleaning up is needed after nextSetTest'
|
||||
raise NotImplementedError,'Helper not implemented'
|
||||
raise NotImplementedError('Helper not implemented')
|
||||
#cur.execute("drop procedure deleteme")
|
||||
|
||||
def test_nextset(self):
|
||||
@ -751,7 +751,7 @@ class DatabaseAPI20Test(unittest.TestCase):
|
||||
con.close()
|
||||
|
||||
def test_nextset(self):
|
||||
raise NotImplementedError,'Drivers need to override this test'
|
||||
raise NotImplementedError('Drivers need to override this test')
|
||||
|
||||
def test_arraysize(self):
|
||||
# Not much here - rest of the tests for this are in test_fetchmany
|
||||
@ -786,7 +786,7 @@ class DatabaseAPI20Test(unittest.TestCase):
|
||||
|
||||
def test_setoutputsize(self):
|
||||
# Real test for setoutputsize is driver dependant
|
||||
raise NotImplementedError,'Driver need to override this test'
|
||||
raise NotImplementedError('Driver need to override this test')
|
||||
|
||||
def test_None(self):
|
||||
con = self._connect()
|
||||
|
@ -77,7 +77,7 @@ class test_MySQLdb(capabilities.DatabaseTest):
|
||||
from MySQLdb.constants import ER
|
||||
try:
|
||||
self.cursor.execute("describe some_non_existent_table");
|
||||
except self.connection.ProgrammingError as msg:
|
||||
except self.connection.ProgrammingError as (msg,):
|
||||
self.assertTrue(msg[0] == ER.NO_SUCH_TABLE)
|
||||
|
||||
def test_bug_3514287(self):
|
||||
|
@ -203,4 +203,3 @@ class test_MySQLdb(dbapi20.DatabaseAPI20Test):
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
print '''"Huh-huh, he said 'unit'." -- Butthead'''
|
||||
|
Reference in New Issue
Block a user