summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_file.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-12-05 01:17:03 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-12-05 01:17:03 (GMT)
commita6fc397a801a4e870e4e2582eb6f902470cdaa01 (patch)
tree48cb3f3bf914c25378393f4d0d96a4b9bc41b5f7 /Lib/test/test_file.py
parentb78a5fc00446c6bfcbbb578cbe471f211a93ea87 (diff)
downloadcpython-a6fc397a801a4e870e4e2582eb6f902470cdaa01.zip
cpython-a6fc397a801a4e870e4e2582eb6f902470cdaa01.tar.gz
cpython-a6fc397a801a4e870e4e2582eb6f902470cdaa01.tar.bz2
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).
Diffstat (limited to 'Lib/test/test_file.py')
-rw-r--r--Lib/test/test_file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_file.py b/Lib/test/test_file.py
index 2869ce7..0803490 100644
--- a/Lib/test/test_file.py
+++ b/Lib/test/test_file.py
@@ -101,7 +101,7 @@ else:
f.close()
try:
- sys.stdin.seek(0)
+ sys.stdin.seek(-1)
except IOError:
pass
else: