summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-01-26 23:13:46 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-01-26 23:13:46 (GMT)
commit7f47d93f52008e38ed09e379e1a3631dce35874f (patch)
treea0dd289974f5659619324a05a895e51efd8989cf
parent37184295dc70936c05803d5a4fafe3ea77a3fd28 (diff)
downloadcpython-7f47d93f52008e38ed09e379e1a3631dce35874f.zip
cpython-7f47d93f52008e38ed09e379e1a3631dce35874f.tar.gz
cpython-7f47d93f52008e38ed09e379e1a3631dce35874f.tar.bz2
On some systems (e.g., Ubuntu on hppa) the flush()
doesn't cause the exception, but the close() does. Will backport.
-rw-r--r--Lib/test/test_resource.py3
1 files changed, 3 insertions, 0 deletions
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 @@ 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