diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-12-05 01:17:03 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-12-05 01:17:03 +0000 |
commit | 1be672c4ee800b4550fe4abd6c4ff36079cd6226 (patch) | |
tree | 78052ae8a7856ea8cf6139f557bcc8411ee6be87 /Lib/test/test_file.py | |
parent | cb2b42f2e424b542b646d9be0f76b32881fb33ba (diff) | |
download | cpython-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.py | 2 |
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: |