From: Neal Norwitz Date: Sat, 26 Jan 2008 23:13:46 +0000 (+0000) Subject: On some systems (e.g., Ubuntu on hppa) the flush() X-Git-Tag: v2.6a1~382 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f47d93f52008e38ed09e379e1a3631dce35874f;p=thirdparty%2FPython%2Fcpython.git On some systems (e.g., Ubuntu on hppa) the flush() doesn't cause the exception, but the close() does. Will backport. --- diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py index 09ac4d53ca7b..3ff31bb33dd5 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