Update of /cvsroot/pywin32/pywin32/adodbapi/tests
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21342/adodbapi/tests
Modified Files:
adodbapitest.py adodbapitestconfig.py dbapi20.py
Log Message:
Move to 'new style' exception raising.
Index: adodbapitest.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/adodbapi/tests/adodbapitest.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** adodbapitest.py 5 Sep 2008 18:49:48 -0000 1.4
--- adodbapitest.py 1 Oct 2008 14:44:53 -0000 1.5
***************
*** 53,57 ****
def getConnection(self):
! raise "This method must be overriden by a subclass"
def getCursor(self):
--- 53,57 ----
def getConnection(self):
! raise Exception("This method must be overriden by a subclass")
def getCursor(self):
***************
*** 189,193 ****
assert descTuple[1] == adodbapi.ROWID, 'was "%s"'%descTuple[1]
else:
! raise "DBAPIDataTypeString not provided"
#Test data binding
--- 189,193 ----
assert descTuple[1] == adodbapi.ROWID, 'was "%s"'%descTuple[1]
else:
! raise Exception("DBAPIDataTypeString not provided")
#Test data binding
Index: dbapi20.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/adodbapi/tests/dbapi20.py,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** dbapi20.py 4 Jan 2008 18:49:10 -0000 1.1.1.1
--- dbapi20.py 1 Oct 2008 14:44:53 -0000 1.2
***************
*** 20,23 ****
--- 20,26 ----
# $Log$
+ # Revision 1.2 2008/10/01 14:44:53 mhammond
+ # Move to 'new style' exception raising.
+ #
# Revision 1.1.1.1 2008/01/04 18:49:10 kf7xm
# Import of the adodbapi package into pywin32.
***************
*** 708,712 ****
number of rows in booze then "name from booze"
'''
! raise NotImplementedError,'Helper not implemented'
#sql="""
# create procedure deleteme as
--- 711,715 ----
number of rows in booze then "name from booze"
'''
! raise NotImplementedError('Helper not implemented')
#sql="""
# create procedure deleteme as
***************
*** 720,724 ****
def help_nextset_tearDown(self,cur):
'If cleaning up is needed after nextSetTest'
! raise NotImplementedError,'Helper not implemented'
#cur.execute("drop procedure deleteme")
--- 723,727 ----
def help_nextset_tearDown(self,cur):
'If cleaning up is needed after nextSetTest'
! raise NotImplementedError('Helper not implemented')
#cur.execute("drop procedure deleteme")
***************
*** 753,757 ****
def test_nextset(self):
! raise NotImplementedError,'Drivers need to override this test'
def test_arraysize(self):
--- 756,760 ----
def test_nextset(self):
! raise NotImplementedError('Drivers need to override this test')
def test_arraysize(self):
***************
*** 788,792 ****
def test_setoutputsize(self):
# Real test for setoutputsize is driver dependant
! raise NotImplementedError,'Driver need to override this test'
def test_None(self):
--- 791,795 ----
def test_setoutputsize(self):
# Real test for setoutputsize is driver dependant
! raise NotImplementedError('Driver need to override this test')
def test_None(self):
Index: adodbapitestconfig.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/adodbapi/tests/adodbapitestconfig.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** adodbapitestconfig.py 29 Aug 2008 14:31:19 -0000 1.3
--- adodbapitestconfig.py 1 Oct 2008 14:44:53 -0000 1.4
***************
*** 55,59 ****
pass
else:
! raise RuntimeError, "Can't find a DB engine"
print ' ...Creating ACCESS db at',_accessdatasource
if win32:
--- 55,59 ----
pass
else:
! raise RuntimeError("Can't find a DB engine")
print ' ...Creating ACCESS db at',_accessdatasource
if win32:
|