← Back to team overview

launchpad-dev team mailing list archive

Re: Hung test process

 

Another update: it seems to be a deadlock in
zope.testing.testrunner.runner.spawn_layer_in_subprocess(). Just
looking at the code made me cry "deadlock".

Changing:

        child = subprocess.Popen(args, shell=False, stdin=subprocess.PIPE,
            stdout=subprocess.PIPE, stderr=subprocess.PIPE,
            close_fds=not sys.platform.startswith('win'))

to:

        child = subprocess.Popen(args, shell=False, stdin=subprocess.PIPE,
            close_fds=not sys.platform.startswith('win'))

prevents the test process from hanging. This is not a fix, but it
seems to indicate a problem with how the streams are being handled.
I'm going to dig some more.



Follow ups

References