On Tuesday 03 November 2009 20:00:19 Stefan Behnel wrote:
> Dag Sverre Seljebotn, 03.11.2009 19:40:
> > Robert Bradshaw wrote:
> >> On Nov 3, 2009, at 7:01 AM, Dag Sverre Seljebotn wrote:
> >>> I lost some time over what appears to be a problem in runtests.py;
> >>> the line
> >>>
> >>>        PartialTestResult.join_results(result, pickle.load(input))
> >>>
> >>> never returns if and only if some test fails (!!)
> 
> Not true in general, but I also noticed that this can happen in some cases.
> I guess it's a problem when a test crashes the Python interpreter, for
>  example.
> 
> >>> My current strategy is to remove the multiprocessing stuff
> >>> locally...I'm not in a mood to spend more time on this now...
> >>
> >> I've been having the same issue, with little luck chasing it down
> >> (though admittedly little time put into it). Try the recently
> >> introduced --no-fork option...
> >
> > How about enabling this for version 2.6+ only and use multiprocessing?
> 
> What I would like to see is a way to gather the output of gcc, and then let
> the tests run in parallel using whatever support fits best (note that
> multiprocessing has the advantage of being available for Windows, and the
> disadvantage of requiring Python 2.6+). To get there, we'd have to patch
> into distutils, and that's far from trivial as there isn't really a hook to
> do that.
> 
> Another possibility would be to divert stdout/stderr into a pipe when we
> fork. Does anyone know how to do that in Python?
this would probably help:
http://alxr.usatlas.bnl.gov/lxr/source/atlas/Tools/PyUtils/python/Decorators.py?v=head#086

(I just ripped it off from:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/511474
)

cheers,
sebastien.

-- 
#########################################
# Dr. Sebastien Binet
# Laboratoire de l'Accelerateur Lineaire
# Universite Paris-Sud XI
# Batiment 200
# 91898 Orsay
#########################################
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to