Update of /cvsroot/pywin32/pywin32/com/win32com/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22285
Modified Files:
pippo.idl pippo_server.py testPippo.py
Log Message:
Most of the tests from [ 1578151 ] Patch for Testing Parameter Problem
Index: testPippo.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testPippo.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** testPippo.py 10 Jan 2006 06:31:38 -0000 1.3
--- testPippo.py 3 Jun 2007 13:27:02 -0000 1.4
***************
*** 30,33 ****
--- 30,38 ----
self.fail("We lost %d references!" % (end-start,))
+ def testResults(self):
+ rc, out1 = self.object.Method2(123, 111)
+ self.failUnlessEqual(rc, 123)
+ self.failUnlessEqual(out1, 222)
+
def testLeaksGencache(self):
try:
Index: pippo.idl
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/pippo.idl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** pippo.idl 22 Apr 2004 08:24:00 -0000 1.1
--- pippo.idl 3 Jun 2007 13:27:01 -0000 1.2
***************
*** 31,34 ****
--- 31,36 ----
[id(1), helpstring("method Method1")] HRESULT Method1([out, retval] IPippo **val);
[propget, id(2), helpstring("property MyProp1")] HRESULT MyProp1([out, retval] long *pVal);
+ [id(3), helpstring("method Method2")] HRESULT Method2([in] long in1, [in, out] long *inout1,
+ [out, retval] long *val);
};
Index: pippo_server.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/pippo_server.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** pippo_server.py 22 Apr 2004 08:24:00 -0000 1.1
--- pippo_server.py 3 Jun 2007 13:27:01 -0000 1.2
***************
*** 34,37 ****
--- 34,40 ----
return wrap(CPippo())
+ def Method2(self, in1, inout1):
+ return in1, inout1 * 2
+
def BuildTypelib():
from distutils.dep_util import newer
|