Discussion:
[Python-3000-checkins] r66163 - in python/branches/py3k: Lib/test/test_asyncore.py
hirokazu.yamamoto
2008-09-02 20:41:25 UTC
Permalink
Author: hirokazu.yamamoto
Date: Tue Sep 2 22:41:25 2008
New Revision: 66163

Log:
Merged revisions 66162 via svnmerge from
svn+ssh://pythondev at svn.python.org/python/trunk

........
r66162 | hirokazu.yamamoto | 2008-09-03 05:36:44 +0900 | 2 lines

Issue #3759: test_asyncore.py leaked handle.
Reviewed by Amaury Forgeot d'Arc
........


Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/test/test_asyncore.py

Modified: python/branches/py3k/Lib/test/test_asyncore.py
==============================================================================
--- python/branches/py3k/Lib/test/test_asyncore.py (original)
+++ python/branches/py3k/Lib/test/test_asyncore.py Tue Sep 2 22:41:25 2008
@@ -390,6 +390,7 @@
def test_recv(self):
fd = os.open(TESTFN, os.O_RDONLY)
w = asyncore.file_wrapper(fd)
+ os.close(fd)

self.assertNotEqual(w.fd, fd)
self.assertNotEqual(w.fileno(), fd)
@@ -403,6 +404,7 @@
d2 = "I want to buy some cheese."
fd = os.open(TESTFN, os.O_WRONLY | os.O_APPEND)
w = asyncore.file_wrapper(fd)
+ os.close(fd)

w.write(d1)
w.send(d2)

Loading...