summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-01-27 18:09:48 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2008-01-27 18:09:48 +0000
commitc5198090f3c1a3d40710a03707c62884234f0e6a (patch)
tree0d330d8964bcfd83ed9a6bae757f9a3326e7cd23
parent41ada16cb7d14801decd4d0e99a11d0841023f77 (diff)
downloadcpython-git-c5198090f3c1a3d40710a03707c62884234f0e6a.tar.gz
Update the comment and remove the close. If we close we can't flush anymore.
We might still need to close after the for loop if flushing 6! times still doesn't cause the signal/exception.
-rw-r--r--Lib/test/test_resource.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py
index 496259f632..225f88278d 100644
--- a/Lib/test/test_resource.py
+++ b/Lib/test/test_resource.py
@@ -56,13 +56,12 @@ class ResourceTest(unittest.TestCase):
f.flush()
# On some systems (e.g., Ubuntu on hppa) the flush()
# doesn't always cause the exception, but the close()
- # does eventually. Try closing several times in
+ # does eventually. Try flushing several times in
# an attempt to ensure the file is really synced and
# the exception raised.
for i in range(5):
time.sleep(.1)
f.flush()
- f.close()
except IOError:
if not limit_set:
raise