[py-dev] Getting 'close failed: [Errno 9] Bad file descriptor' in several tests

Grig Gheorghiu grig at gheorghiu.net
Mon May 9 20:51:32 CEST 2005


I'm trying to run py.test through its own tests on win32. When I run
test_session.py, I get this:

test_session.py[20] ....................

================== tests finished: 20 passed in 4.59 seconds
==================
close failed: [Errno 9] Bad file descriptor
close failed: [Errno 9] Bad file descriptor

If I disable the last 2 tests in tests_session.py (test_exec and
test_looponfailing), the 'close failed' errors go away.

I get the same exact errors on a Linux RH 9 box, so this seems to be a
problem that is not specific to win32. 

Also, on Linux, when I run the test_gateway.py test suite in
py/execnet, I get:

test_gateway.py[68]
..................................................ssssssssssssssssss


_________________________________________________________________
reasons for skipped tests
_________________________________________________________________
Skipped in /home/ggheo/py/py/execnet/testing/test_gateway.py:287
reason: Skipped: no known ssh target, use -S to set one

=================================================== tests finished: 50
passed, 18 skipped in 3.53 seconds
===================================================
close failed: [Errno 9] Bad file descriptor
close failed: [Errno 9] Bad file descriptor
close failed: [Errno 9] Bad file descriptor
close failed: [Errno 9] Bad file descriptor

I'm still trying to trace the code that's causing the error (it seems
to be related to the _local_close method of a Channel object.)

Grig






More information about the Pytest-dev mailing list