commit | 7f47d93f52008e38ed09e379e1a3631dce35874f | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Sat Jan 26 23:13:46 2008 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Sat Jan 26 23:13:46 2008 +0000 |
tree | a0dd289974f5659619324a05a895e51efd8989cf | |
parent | 37184295dc70936c05803d5a4fafe3ea77a3fd28 [diff] [blame] |
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 09ac4d5..3ff31bb 100644 --- a/Lib/test/test_resource.py +++ b/Lib/test/test_resource.py
@@ -53,6 +53,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