commit | b03528ca206f55071e5aaf1acfa26665bcfec473 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Sun Jan 27 01:23:50 2008 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Sun Jan 27 01:23:50 2008 +0000 |
tree | 2ea409616a780a2aca30a7dec22e7f27200c68bd | |
parent | ee50e3c73472bfe70cdfa66db5ca21d154173be6 [diff] [blame] |
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 29ce35b..28876e3 100644 --- a/Lib/test/test_resource.py +++ b/Lib/test/test_resource.py
@@ -36,6 +36,9 @@ 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