On some systems (e.g., Ubuntu on hppa) the flush()
doesn't cause the exception, but the close() does. Will backport.
This commit is contained in:
parent
37184295dc
commit
7f47d93f52
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue