summaryrefslogtreecommitdiff
path: root/Lib/test/test_file.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-12-05 01:17:03 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2005-12-05 01:17:03 +0000
commit1be672c4ee800b4550fe4abd6c4ff36079cd6226 (patch)
tree78052ae8a7856ea8cf6139f557bcc8411ee6be87 /Lib/test/test_file.py
parentcb2b42f2e424b542b646d9be0f76b32881fb33ba (diff)
downloadcpython-1be672c4ee800b4550fe4abd6c4ff36079cd6226.tar.gz
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 2869ce76c6..0803490add 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: