[Zope-Checkins]
SVN: Zope/trunk/lib/python/zdaemon/tests/testzdrun.py
- Forward-port further unit test cleanup from 2.7 branch.
Tres Seaver
tseaver at zope.com
Thu Mar 10 15:47:11 EST 2005
Log message for revision 29435:
- Forward-port further unit test cleanup from 2.7 branch.
Changed:
U Zope/trunk/lib/python/zdaemon/tests/testzdrun.py
-=-
Modified: Zope/trunk/lib/python/zdaemon/tests/testzdrun.py
===================================================================
--- Zope/trunk/lib/python/zdaemon/tests/testzdrun.py 2005-03-10 19:46:46 UTC (rev 29434)
+++ Zope/trunk/lib/python/zdaemon/tests/testzdrun.py 2005-03-10 20:47:10 UTC (rev 29435)
@@ -80,7 +80,7 @@
args[i] = '"%s"' % args[i]
return " ".join(args)
- def rundaemon(self, args):
+ def _rundaemon(self, args):
# Add quotes, in case some pathname contains spaces (e.g. Mac OS X)
args = self.quoteargs(args)
cmd = ('PYTHONPATH="%s" "%s" "%s" -d -s "%s" %s' %
@@ -106,7 +106,7 @@
self.expect = "expected\n"
def testSystem(self):
- self.rundaemon(["echo", "-n"])
+ self._rundaemon(["echo", "-n"])
self.expect = ""
## def testInvoke(self):
@@ -114,7 +114,7 @@
## self.expect = ""
## def testControl(self):
-## self.rundaemon(["sleep", "1000"])
+## self._rundaemon(["sleep", "1000"])
## time.sleep(1)
## self._run("stop")
## time.sleep(1)
@@ -122,7 +122,7 @@
## self.expect = "Sent SIGTERM\nExiting now\n"
## def testStop(self):
-## self.rundaemon([self.python, self.nokill])
+## self._rundaemon([self.python, self.nokill])
## time.sleep(1)
## self._run("stop")
## time.sleep(1)
@@ -252,7 +252,7 @@
touch_cmd = "/bin/touch"
if not os.path.exists(touch_cmd):
touch_cmd = "/usr/bin/touch" # Mac OS X
- self.rundaemon(["-m", "666", touch_cmd, path])
+ self._rundaemon(["-m", "666", touch_cmd, path])
for i in range(5):
if not os.path.exists(path):
time.sleep(0.1)
More information about the Zope-Checkins
mailing list