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

SourceForge.net noreply@sourceforge.net
Fri, 03 Jan 2003 07:05:37 -0800


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

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
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.




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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2003-01-03 10:05

Message:
Logged In: YES 
user_id=6380

Thanks for reminding me. I had already fixed this on the CVS
trunk (i.e. for ZODB 3.2). I've now backported that trivial
fix to the 3.1.1 release branch.

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

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