commit | a6fc397a801a4e870e4e2582eb6f902470cdaa01 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Mon Dec 05 01:17:03 2005 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Mon Dec 05 01:17:03 2005 +0000 |
tree | 48cb3f3bf914c25378393f4d0d96a4b9bc41b5f7 | |
parent | b78a5fc00446c6bfcbbb578cbe471f211a93ea87 [diff] [blame] |
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).
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 @@ f.close() try: - sys.stdin.seek(0) + sys.stdin.seek(-1) except IOError: pass else: