Some (many) tests actually pass now on Python 3. May no longer be backwards-compatible with Python < 2.6.

This commit is contained in:
adustman
2012-09-08 20:24:45 +00:00
parent fe917fcced
commit 8041cc6df6
8 changed files with 24 additions and 20 deletions

View File

@ -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()