]> granicus.if.org Git - python/commitdiff
Try harder to provoke the exception since the ia64 buildbot still
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 28 Jan 2008 01:33:23 +0000 (01:33 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 28 Jan 2008 01:33:23 +0000 (01:33 +0000)
doesn't reliably produce an exception.

Lib/test/test_resource.py

index ac953958b0c22fec70c7f2fe229cf810ce580441..c86735a7ed12efee4cf94778d80e83f83b58ba2a 100644 (file)
@@ -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