[pywin32-checkins] pywin32/com/win32com/test testPyComTest.py,1.16,1.17
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-11-02 10:03:27
|
Update of /cvsroot/pywin32/pywin32/com/win32com/test In directory sc8-pr-cvs1:/tmp/cvs-serv4662 Modified Files: testPyComTest.py Log Message: Add a few comments, and dont print anything when quiet Index: testPyComTest.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testPyComTest.py,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** testPyComTest.py 23 Oct 2003 07:09:05 -0000 1.16 --- testPyComTest.py 2 Nov 2003 10:03:24 -0000 1.17 *************** *** 7,10 **** --- 7,12 ---- from win32com.test.util import CheckClean from win32com.client import constants + import win32com + from util import RegisterPythonServer importMsg = "**** PyCOMTest is not installed ***\n PyCOMTest is a Python test specific COM client and server.\n It is likely this server is not installed on this machine\n To install the server, you must get the win32com sources\n and build it using MS Visual C++" *************** *** 13,18 **** # This test uses a Python implemented COM server - ensure correctly registered. - from util import RegisterPythonServer - import win32com RegisterPythonServer(os.path.join(win32com.__path__[0], "servers", "test_pycomtest.py")) --- 15,18 ---- *************** *** 25,30 **** raise RuntimeError, importMsg - import sys - # We had a bg where RegisterInterfaces would fail if gencache had # already been run - exercise that here --- 25,28 ---- *************** *** 319,331 **** def TestMultiVTable(): ! # Ideally we should be able to do this test multiple times, ! # however at the moment the second call generates an invalid ! # memory read to bubble up out of python. Set the range ! # to 1 to pass this test, i.e. for i in range(1) ! for i in range(2): progress("Testing VTables in-process #%d..." % (i+1)) TestVTable(pythoncom.CLSCTX_INPROC_SERVER) ! for i in range(2): progress("Testing VTables out-of-process #%d..." % (i+1)) TestVTable(pythoncom.CLSCTX_LOCAL_SERVER) --- 317,326 ---- def TestMultiVTable(): ! # We used to crash running this the second time - do it a few times ! for i in range(3): progress("Testing VTables in-process #%d..." % (i+1)) TestVTable(pythoncom.CLSCTX_INPROC_SERVER) ! for i in range(3): progress("Testing VTables out-of-process #%d..." % (i+1)) TestVTable(pythoncom.CLSCTX_LOCAL_SERVER) *************** *** 372,374 **** CheckClean() pythoncom.CoUninitialize() ! print "C++ test harness worked OK." --- 367,370 ---- CheckClean() pythoncom.CoUninitialize() ! if verbose: ! print "C++ test harness worked OK." |