mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue