[pywin32-checkins] pywin32/com/win32com/test testPippo.py,1.2,1.3
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2006-01-10 06:31:46
|
Update of /cvsroot/pywin32/pywin32/com/win32com/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv705 Modified Files: testPippo.py Log Message: Always register the server to ensure we have the current Python version. Index: testPippo.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testPippo.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** testPippo.py 7 Sep 2004 02:10:13 -0000 1.2 --- testPippo.py 10 Jan 2006 06:31:38 -0000 1.3 *************** *** 7,17 **** class PippoTester(unittest.TestCase): def setUp(self): ! try: ! self.object = Dispatch("Python.Test.Pippo") ! except pythoncom.com_error: ! # register the server ! import pippo_server ! pippo_server.main([pippo_server.__file__]) ! self.object = Dispatch("Python.Test.Pippo") def testLeaks(self): --- 7,15 ---- class PippoTester(unittest.TestCase): def setUp(self): ! # register the server ! import pippo_server ! pippo_server.main([pippo_server.__file__]) ! # create it. ! self.object = Dispatch("Python.Test.Pippo") def testLeaks(self): |