[pywin32-checkins] pywin32/com/win32com/test testPyComTest.py,1.21,1.22
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2005-06-27 11:02:58
|
Update of /cvsroot/pywin32/pywin32/com/win32com/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9704/win32com/test Modified Files: testPyComTest.py Log Message: Fix [ 1203980 ] Universal Gateway mishandles ByRef Variant arguments Index: testPyComTest.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testPyComTest.py,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** testPyComTest.py 8 Jun 2005 05:19:04 -0000 1.21 --- testPyComTest.py 27 Jun 2005 11:02:42 -0000 1.22 *************** *** 173,176 **** --- 173,186 ---- if o.GetSetInterface(o).__class__ != o.__class__: raise error, "GetSetDispatch failed" + if o.GetSetVariant(4) != 4: + raise error, "GetSetVariant (int) failed" + if o.GetSetVariant("foo") != "foo": + raise error, "GetSetVariant (str) failed" + if o.GetSetVariant(o) != o: + raise error, "GetSetVariant (dispatch) failed" + if o.TestByRefVariant(2) != 4: + raise error, "TestByRefVariant failed" + if o.TestByRefString("Foo") != "FooFoo": + raise error, "TestByRefString failed" # Pass some non-sequence objects to our array decoder, and watch it fail. |