Update of /cvsroot/pywin32/pywin32/win32/test
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv28578/win32/test
Modified Files:
test_win32wnet.py
Log Message:
int attributes always exactly int, and fix string checks
Index: test_win32wnet.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/test/test_win32wnet.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_win32wnet.py 10 Dec 2008 11:13:51 -0000 1.2
--- test_win32wnet.py 11 Dec 2008 05:12:39 -0000 1.3
***************
*** 57,61 ****
val = getattr(item, attr)
if typ is int:
! self.failUnless(type(val) in (int, int),
"Attr %r has value %r" % (attr, val))
new_val = val + 1
--- 57,61 ----
val = getattr(item, attr)
if typ is int:
! self.failUnless(type(val) in (int,),
"Attr %r has value %r" % (attr, val))
new_val = val + 1
***************
*** 63,67 ****
if val is not None:
# on py2k, must be string or unicode. py3k must be string or bytes.
! self.failUnless(type(val) in (str, str),
"Attr %r has value %r" % (attr, val))
new_val = val + " new value"
--- 63,67 ----
if val is not None:
# on py2k, must be string or unicode. py3k must be string or bytes.
! self.failUnless(type(val) in (str, unicode),
"Attr %r has value %r" % (attr, val))
new_val = val + " new value"
|