diff --git a/Lib/test/test_file.py b/Lib/test/test_file.py index 2869ce76c6d..0803490add6 100644 --- a/Lib/test/test_file.py +++ b/Lib/test/test_file.py @@ -101,7 +101,7 @@ class NonString: pass f.close() try: - sys.stdin.seek(0) + sys.stdin.seek(-1) except IOError: pass else: