Update of /cvsroot/pywin32/pywin32/com/win32com/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3216
Modified Files:
testvb.py
Log Message:
Test assigning and fetching a buffer object to a Variant property
Index: testvb.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testvb.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** testvb.py 7 Sep 2004 02:09:20 -0000 1.19
--- testvb.py 21 Nov 2006 06:56:04 -0000 1.20
***************
*** 85,88 ****
--- 85,91 ----
if vbtest.VariantProperty != 10:
raise error, "Could not set the variant integer property correctly."
+ vbtest.VariantProperty = buffer('raw\0data')
+ if vbtest.VariantProperty != buffer('raw\0data'):
+ raise error, "Could not set the variant buffer property correctly."
vbtest.StringProperty = "Hello from Python"
if vbtest.StringProperty != "Hello from Python":
|