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: r41552 broke test_file on OS X
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: mwh Nosy List: mwh, nnorwitz
Priority: normal Keywords:

Created on 2005-12-05 00:25 by mwh, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg26985 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2005-12-05 00:25
Apparently you *can* seek on sys.stdin here.  If you just want seek() to fail 
sys.stdin.seek(-1) seems pretty likely to work...
msg26986 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-12-05 01:17
Logged In: YES 
user_id=33168

revision 41602
msg26987 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2005-12-05 09:31
Logged In: YES 
user_id=6656

I suspect you know this from what I said on IRC, but test_file still fails, because 
you can tell() on sys.stdin too (I don't really see what you can do about this)
msg26988 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-12-06 05:59
Logged In: YES 
user_id=33168

Sorry, I think I closed the report before I saw that there
was another problem.  From a man page, it looked like tell()
may fail if it is done on a pipe.  So maybe the problem
can't happen on OS X?  We could check if the system is
osx/darwin and skip the test.  Do you want to skip the test?
 Since it was for coverage and to ensure nothing bad goes
wrong with error handling, it's not awful that it can't be
provoked on osx.
msg26989 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-12-15 06:07
Logged In: YES 
user_id=33168

Michael, I reverted the tell() portion.  Do all the tests
work for you now?  Can this be closed?
msg26990 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-02-06 08:24
Logged In: YES 
user_id=33168

Closing since this doesn't seem to be a problem any more on
10.3 and 10.4
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42659
2005-12-05 00:25:31mwhcreate