[Zope3-checkins] SVN: zdaemon/trunk/tests/testzdrun.py Merge changes made from yet another wrong project:

Tim Peters tim.one at comcast.net
Mon Jan 24 11:19:17 EST 2005


Log message for revision 28927:
  Merge changes made from yet another wrong project:
  
  r28881 | dman13 | 2005-01-19 19:33:00 -0500 (Wed, 19 Jan 2005) | 5 lines
  Changed paths:
     M /Zope3/trunk/src/zdaemon/tests/testzdrun.py
  
  Renamed run() method to _run().  Python 2.4's unittest.TestCase class
  defines all of the test logic in the run() method instead of in __call__()
  (as 2.3 did).  The rename prevents overriding the base implementation and
  causing the tests to fail.
  

Changed:
  U   zdaemon/trunk/tests/testzdrun.py

-=-
Modified: zdaemon/trunk/tests/testzdrun.py
===================================================================
--- zdaemon/trunk/tests/testzdrun.py	2005-01-24 15:56:19 UTC (rev 28926)
+++ zdaemon/trunk/tests/testzdrun.py	2005-01-24 16:19:17 UTC (rev 28927)
@@ -90,7 +90,7 @@
         ##os.system("PYTHONPATH=%s %s %s -s %s %s &" %
         ##    (self.ppath, self.python, self.zdrun, self.zdsock, args))
 
-    def run(self, args, cmdclass=None):
+    def _run(self, args, cmdclass=None):
         if type(args) is type(""):
             args = args.split()
         try:
@@ -102,7 +102,7 @@
         class MyCmd(zdctl.ZDCmd):
             def do_sproing(self, rest):
                 print rest
-        self.run("-p echo sproing expected", cmdclass=MyCmd)
+        self._run("-p echo sproing expected", cmdclass=MyCmd)
         self.expect = "expected\n"
 
     def testSystem(self):
@@ -110,27 +110,27 @@
         self.expect = ""
 
 ##     def testInvoke(self):
-##         self.run("echo -n")
+##         self._run("echo -n")
 ##         self.expect = ""
 
 ##     def testControl(self):
 ##         self.rundaemon(["sleep", "1000"])
 ##         time.sleep(1)
-##         self.run("stop")
+##         self._run("stop")
 ##         time.sleep(1)
-##         self.run("exit")
+##         self._run("exit")
 ##         self.expect = "Sent SIGTERM\nExiting now\n"
 
 ##     def testStop(self):
 ##         self.rundaemon([self.python, self.nokill])
 ##         time.sleep(1)
-##         self.run("stop")
+##         self._run("stop")
 ##         time.sleep(1)
-##         self.run("exit")
+##         self._run("exit")
 ##         self.expect = "Sent SIGTERM\nSent SIGTERM; will exit later\n"
 
     def testHelp(self):
-        self.run("-h")
+        self._run("-h")
         import __main__
         self.expect = __main__.__doc__
 



More information about the Zope3-Checkins mailing list