[Python-checkins] r60380 - python/branches/release25-maint/Lib/test/test_resource.py

neal.norwitz python-checkins at python.org
Mon Jan 28 02:33:24 CET 2008


Author: neal.norwitz
Date: Mon Jan 28 02:33:23 2008
New Revision: 60380

Modified:
   python/branches/release25-maint/Lib/test/test_resource.py
Log:
Try harder to provoke the exception since the ia64 buildbot still
doesn't reliably produce an exception.


Modified: python/branches/release25-maint/Lib/test/test_resource.py
==============================================================================
--- python/branches/release25-maint/Lib/test/test_resource.py	(original)
+++ python/branches/release25-maint/Lib/test/test_resource.py	Mon Jan 28 02:33:23 2008
@@ -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


More information about the Python-checkins mailing list