This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients r.david.murray
Date 2009-07-22.02:32:01
SpamBayes Score 2.7704063e-09
Marked as misclassified No
Message-id <1248229924.23.0.0654995179292.issue6542@psf.upfronthosting.co.za>
In-reply-to
Content
The test sequence "test_ttk_guionly test_os test_pipes" hangs almost
every time when run on Gentoo x86 and Ubuntu x86_64 (at least).  Note
that this is without the gui resource, so the ttk tests aren't being run.

Commenting out test_closerange in TestInvalidFD in test_os clears the
hang.  Playing around with which module imports are commented out in
test_ttk_guionly can clear the hang, but test_pipes then produces the
following errors:

======================================================================
ERROR: testSimplePipe1 (test.test_pipes.SimplePipeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rdmurray/python/py3k/Lib/test/test_pipes.py", line 23, in
testSimplePipe1
    f = t.open(TESTFN, 'w')
  File "/home/rdmurray/python/py3k/Lib/pipes.py", line 148, in open
    return self.open_w(file)
  File "/home/rdmurray/python/py3k/Lib/pipes.py", line 168, in open_w
    return os.popen(cmd, 'w')
  File "/home/rdmurray/python/py3k/Lib/os.py", line 636, in popen
    bufsize=buffering)
  File "/home/rdmurray/python/py3k/Lib/subprocess.py", line 646, in __init__
    errread, errwrite)
  File "/home/rdmurray/python/py3k/Lib/subprocess.py", line 1138, in
_execute_child
    os.close(errpipe_read)
OSError: [Errno 9] Bad file descriptor

======================================================================
FAIL: testSimplePipe2 (test.test_pipes.SimplePipeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rdmurray/python/py3k/Lib/test/test_pipes.py", line 33, in
testSimplePipe2
    self.assertEqual(open(TESTFN2).read(), 'HELLO WORLD #2')
AssertionError: '' != 'HELLO WORLD #2'


The first of these appears almost every time, the second one seldom. 
Occasinally both tests pass.
History
Date User Action Args
2009-07-22 02:32:04r.david.murraysetrecipients: + r.david.murray
2009-07-22 02:32:04r.david.murraysetmessageid: <1248229924.23.0.0654995179292.issue6542@psf.upfronthosting.co.za>
2009-07-22 02:32:02r.david.murraylinkissue6542 messages
2009-07-22 02:32:01r.david.murraycreate