[TIP] py.test fails when called via nant with "ValueError: saved filedescriptor not valid, did you call start() twice?"

Berthold Hoellmann berthold at despammed.com
Wed Jan 30 09:02:13 PST 2013


holger krekel <holger at merlinux.eu> writes:

> Hi Berthold,
>
>
> On Tue, Jan 29, 2013 at 17:23 +0100, Berthold Hoellmann wrote:
>> 

...

>> First I thought of it as problem in one of my libraries, but the error
>> also appears when I ignore all tests at the command line. I was not able
>> to find information on this error that made sense for me. 
>
> It's related to capturing stdout/stderr on the (default) filedescriptor
> level but i am not sure what exactly is going on.   Does it work when
> you add "--capture=sys" to the options?  This switched the capturing method
> to intercepting sys.stdout/stderr at the python level, not touching
> file descriptors. 

Thanks a lot. This saved my day :-)

Berthold

>
>
> best,
> holger
>
>
>> What can I do to make this run?
>> 
>> pytest ist version 2.3.4
>> 
>> Thanks
>> Berthold
>> 

-- 
                            __   Address:
                         G /  \ L Germanischer Lloyd SE
phone: +49-40-36149-7374 -+----+- Brooktorkai 18
fax  : +49-40-36149-7320   \__/   D-20457 Hamburg




More information about the testing-in-python mailing list