[Python-checkins] r60336 - python/branches/release25-maint/Lib/test/test_resource.py
neal.norwitz
python-checkins at python.org
Sun Jan 27 02:23:50 CET 2008
Author: neal.norwitz
Date: Sun Jan 27 02:23:50 2008
New Revision: 60336
Modified:
python/branches/release25-maint/Lib/test/test_resource.py
Log:
Backport 60334:
On some systems (e.g., Ubuntu on hppa) the flush()
doesn't (always) cause the exception, but the close() does.
Modified: python/branches/release25-maint/Lib/test/test_resource.py
==============================================================================
--- python/branches/release25-maint/Lib/test/test_resource.py (original)
+++ python/branches/release25-maint/Lib/test/test_resource.py Sun Jan 27 02:23:50 2008
@@ -36,6 +36,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
More information about the Python-checkins
mailing list