Update of /cvsroot/pywin32/pywin32/win32/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5351
Modified Files:
test_odbc.py
Log Message:
Add date tests (which I believe fail, but can't test atm)
Index: test_odbc.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/test/test_odbc.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_odbc.py 24 May 2006 08:39:40 -0000 1.5
--- test_odbc.py 20 May 2007 11:08:22 -0000 1.6
***************
*** 56,60 ****
userid varchar(5), username varchar(25),
bitfield bit, intfield integer,
! floatfield float
)"""),-1)
--- 56,61 ----
userid varchar(5), username varchar(25),
bitfield bit, intfield integer,
! floatfield float,
! datefield date,
)"""),-1)
***************
*** 131,134 ****
--- 132,143 ----
self._test_val('username', 'foo')
+ def testDates(self):
+ import datetime
+ for v in (
+ (1800, 12, 25, 23, 59,),
+ ):
+ d = datetime.datetime(*v)
+ self._test_val('datefield', 'd')
+
def test_set_nonzero_length(self):
self.assertEqual(self.cur.execute("insert into pywin32test_users (userid,username) "
|