From 249cbe794e048d7c6c34169d4b59529f1c0baedb Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 28 Jan 2008 01:33:23 +0000 Subject: [PATCH] Try harder to provoke the exception since the ia64 buildbot still doesn't reliably produce an exception. --- Lib/test/test_resource.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py index ac953958b0c..c86735a7ed1 100644 --- a/Lib/test/test_resource.py +++ b/Lib/test/test_resource.py @@ -33,6 +33,7 @@ try: limit_set = 0 f = open(TESTFN, "wb") f.write("X" * 1024) + f.flush() try: f.write("Y") f.flush() @@ -43,6 +44,7 @@ try: for i in range(5): time.sleep(.1) f.flush() + f.close() except IOError: if not limit_set: raise