From: Neal Norwitz Date: Sun, 27 Jan 2008 01:23:50 +0000 (+0000) Subject: Backport 60334: X-Git-Tag: v2.5.2c1~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b03528ca206f55071e5aaf1acfa26665bcfec473;p=python Backport 60334: On some systems (e.g., Ubuntu on hppa) the flush() doesn't (always) cause the exception, but the close() does. --- diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py index 29ce35bb0b..28876e3a21 100644 --- a/Lib/test/test_resource.py +++ b/Lib/test/test_resource.py @@ -36,6 +36,9 @@ try: 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