Try harder to provoke the exception since the ia64 buildbot still
doesn't reliably produce an exception.
diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py
index ac95395..c86735a 100644
--- a/Lib/test/test_resource.py
+++ b/Lib/test/test_resource.py
@@ -33,6 +33,7 @@
         limit_set = 0
     f = open(TESTFN, "wb")
     f.write("X" * 1024)
+    f.flush()
     try:
         f.write("Y")
         f.flush()
@@ -43,6 +44,7 @@
         for i in range(5):
             time.sleep(.1)
             f.flush()
+        f.close()
     except IOError:
         if not limit_set:
             raise