diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_resource.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py index 09ac4d53ca..3ff31bb33d 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 |