From a6fc397a801a4e870e4e2582eb6f902470cdaa01 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 5 Dec 2005 01:17:03 +0000 Subject: 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). --- Lib/test/test_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v0.12