[py-dev] py.test --looponfailing IOError

Matthew Edwards monopocalypse+py-dev at gmail.com
Sat Jul 12 08:03:04 CEST 2008


Hi

I'm using Python 2.5.2 (sorry, forgot to mention). Any test file will
cause the error - an empty folder will not, but a folder with an empty
file called "test_1.py" will. Running with an empty folder and then
adding a test file will also.

I've attached the files anyway (slightly cut-down versions which still
cause the error).

I've run what looks like the py.execnet test suite
(site-packages\py\execnet\testing), and most of the tests fail, so
I've attached the log of that (zipped).

Thanks
Matthew

On Sat, Jul 12, 2008 at 5:01 PM, holger krekel <holger at merlinux.de> wrote:
>
> Hello Matthew,
>
> this seems to be a problem with the lower level network communication part.
> also had other reports pointing to that.  I aim to look into
> this next week when i am back from EuroPython ...
>
> can you meanwhile post your Python version and attach the test
> file that triggered the problems?
>
> best & thanks,
>
> holger
>
>
> On Sat, Jul 12, 2008 at 10:50 +1200, Matthew Edwards wrote:
> > Hi
> >
> > I'm running py 0.9.1 (from tarfile) on Windows XP. I've written a
> > couple of simple tests, which are in a folder called test. Whenever I
> > do "py.test --looponfailing test/" I get the following output:
> >
> >
> > inserting into sys.path: C:\Program Files\Python\Lib\site-packages
> > * opening PopenGateway:  C:\Program Files\Python\python.exe
> > Traceback (most recent call last):
> >   File "C:\Program
> > Files\Python\Lib\site-packages\py\bin\win32\\..\py.test", line 4, in
> > <module>
> >     py.test.cmdline.main()
> >   File "C:\Program Files\Python\Lib\site-packages\py\test\cmdline.py",
> > line 15, in main
> >     failures = session.main()
> >   File "C:\Program
> > Files\Python\Lib\site-packages\py\test\terminal\remote.py", line 82,
> > in main
> >     failures = self.run_remote_session(failures)
> >   File "C:\Program
> > Files\Python\Lib\site-packages\py\test\terminal\remote.py", line 100,
> > in run_remote_session
> >
> >     gw, topdir = self._initslavegateway()
> >   File "C:\Program
> > Files\Python\Lib\site-packages\py\test\terminal\remote.py", line 97,
> > in _initslavegateway
> >     return py.execnet.PopenGateway(self.executable), topdir
> >   File "C:\Program
> > Files\Python\Lib\site-packages\py\execnet\register.py", line 66, in
> > __init__
> >     super(PopenGateway, self).__init__(cmd)
> >   File "C:\Program
> > Files\Python\Lib\site-packages\py\execnet\register.py", line 55, in
> > __init__
> >     super(PopenCmdGateway, self).__init__(io=io)
> >   File "C:\Program
> > Files\Python\Lib\site-packages\py\execnet\register.py", line 29, in
> > __init__
> >     self._remote_bootstrap_gateway(io)
> >   File "C:\Program
> > Files\Python\Lib\site-packages\py\execnet\register.py", line 80, in
> > _remote_bootstrap_gateway
> >     super(PopenGateway, self)._remote_bootstrap_gateway(io, s)
> >   File "C:\Program
> > Files\Python\Lib\site-packages\py\execnet\register.py", line 49, in
> > _remote_bootstrap_gateway
> >     io.write('%r\n' % source)
> >   File "C:\Program
> > Files\Python\Lib\site-packages\py\execnet\inputoutput.py", line 95, in
> > write
> >     self.outfile.write(data)
> > IOError: [Errno 22] Invalid argument
> >
> > I can run the tests without --looponfailing.
> >
> > Any help appreciated
> > Matthew
> > _______________________________________________
> > py-dev mailing list
> > py-dev at codespeak.net
> > http://codespeak.net/mailman/listinfo/py-dev
> >
>
> --
> collaborative expert contracting: http://merlinux.eu
> pylib py.test/greenlets/svn APIs: http://pylib.org
> PyPy  Python/Compiler tool chain: http://codespeak.net/pypy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proto.py
Type: text/x-python
Size: 1003 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20080712/91d950a8/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_proto.py
Type: text/x-python
Size: 461 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20080712/91d950a8/attachment-0001.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.log.zip
Type: application/zip
Size: 4613 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20080712/91d950a8/attachment.zip>


More information about the Pytest-dev mailing list