From 7f47d93f52008e38ed09e379e1a3631dce35874f Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sat, 26 Jan 2008 23:13:46 +0000 Subject: [PATCH] On some systems (e.g., Ubuntu on hppa) the flush() doesn't cause the exception, but the close() does. Will backport. --- Lib/test/test_resource.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py index 09ac4d53ca7..3ff31bb33dd 100644 --- a/Lib/test/test_resource.py +++ b/Lib/test/test_resource.py @@ -53,6 +53,9 @@ class ResourceTest(unittest.TestCase): try: f.write("Y") f.flush() + # On some systems (e.g., Ubuntu on hppa) the flush() + # doesn't cause the exception, but the close() does. + f.close() except IOError: if not limit_set: raise