[ZODB-Dev] [ zodb-Bugs-661476 ] testStart hangs on OS X

noreply@sourceforge.net noreply@sourceforge.net
Thu, 02 Jan 2003 23:04:33 -0800


Bugs item #661476, was opened at 2003-01-03 07:04
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=661476&group_id=15628

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Brian Lenihan (brianl)
Assigned to: Nobody/Anonymous (nobody)
Summary: testStart hangs on OS X

Initial Comment:
brianl@powerbook: ~/Desktop/ZODB3-3.1.1b1
[505]> python test.py 
/usr/local/bin/python: can't open file
'lib.darwin-6.3-Power'
Failure in test testErrNoPort
(ZEO.tests.testStart.StartTests)
Traceback (most recent call last):
  File "lib.darwin-6.3-Power
Macintosh-2.3/ZEO/tests/testStart.py", line 143, in
testErrNoPort
    self.assert_(outp.find("No port specified") != -1)
  File
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/unittest.py",
line 268, in failUnless
    if not expr: raise self.failureException, msg
AssertionError

/usr/local/bin/python: can't open file
'lib.darwin-6.3-Power'

The test hangs at this point and the child process must
be killed.

I traced the hang to line 89 of testStart:
_pid, status = os.waitpid(pid, flag)

But the actual problem is found on line 51 of
ZEO/tests/testStart.py:
self.cmd = '%s %s' % (sys.executable, startfile)

I added double quotes around the format string for
startfile and the test ran succesfully.




----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=661476&group_id=15628