[Python-checkins] commit of r41602 - python/trunk/Lib/test/test_file.py
neal.norwitz
python-checkins at python.org
Mon Dec 5 02:17:11 CET 2005
Author: neal.norwitz
Date: Mon Dec 5 02:17:03 2005
New Revision: 41602
Modified:
python/trunk/Lib/test/test_file.py
Log:
Fix SF #1373161, r41552 broke test_file on OS X
You apparently can seek(0) on sys.stdin on OS X.
But you can't go backwards, so seek(-1).
Modified: python/trunk/Lib/test/test_file.py
==============================================================================
--- python/trunk/Lib/test/test_file.py (original)
+++ python/trunk/Lib/test/test_file.py Mon Dec 5 02:17:03 2005
@@ -101,7 +101,7 @@
f.close()
try:
- sys.stdin.seek(0)
+ sys.stdin.seek(-1)
except IOError:
pass
else:
More information about the Python-checkins
mailing list