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.

classification
Title: test_poll fails on FreeBSD 4.1
Type: Stage:
Components: Extension Modules Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, gvanrossum
Priority: normal Keywords:

Created on 2000-08-29 15:51 by gvanrossum, last changed 2022-04-10 16:02 by admin. This issue is now closed.

Messages (3)
msg1134 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2000-08-29 15:51
We have a FreeBSD 4.1 system at BeOpen now, and when I build Python all tests succeed except for test_poll.  The error is this assert in test_poll1():

  assert len(buf) == MSG_LEN

When I add a print statement, len(buf) is zero.

Any suggestion as to what I should do next?
msg1135 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2000-08-29 16:24
What the test is doing is creating a bunch of pipes,
writing the string MSG to them, and then reading them back.  test_poll1() has just picked a random pipe that's ready for reading, and tried to read MSG_LEN bytes, but instead it 
got back the empty string.  Print the contents of the 
'ready' list and of the 'ready_readers' list constructed from it; maybe find_ready_readers in the test module is buggy.  (Or maybe this behaviour is legal for some reason, 
and the assertion is too stringent.)

I could get a log in on the FreeBSD machine at SourceForge
and look into this.

The test_poll1() function was contributed by Jeremy, BTW,
so if he has access to your FreeBSD machine, he could
also look into it.
msg1136 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2000-08-29 17:00
Fixed in record time by Andrew.  Thanks, Andrew!
History
Date User Action Args
2022-04-10 16:02:19adminsetgithub: 33007
2000-08-29 15:51:25gvanrossumcreate