Kaydet (Commit) 7f47d93f authored tarafından Neal Norwitz's avatar Neal Norwitz

On some systems (e.g., Ubuntu on hppa) the flush()

doesn't cause the exception, but the close() does.

Will backport.
üst 37184295
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment