diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-09-02 20:36:44 (GMT) |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-09-02 20:36:44 (GMT) |
commit | 3e7dd78344668b1921f4c181a648ca812c1d0064 (patch) | |
tree | d9b2321bf0d418439b371a124ef985168d7eb69a /Lib | |
parent | 3e75d2336d94a8c426ed9dad3aeff651dcb20176 (diff) | |
download | cpython-3e7dd78344668b1921f4c181a648ca812c1d0064.zip cpython-3e7dd78344668b1921f4c181a648ca812c1d0064.tar.gz cpython-3e7dd78344668b1921f4c181a648ca812c1d0064.tar.bz2 |
Issue #3759: test_asyncore.py leaked handle.
Reviewed by Amaury Forgeot d'Arc
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_asyncore.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py index facc83e..72de850 100644 --- a/Lib/test/test_asyncore.py +++ b/Lib/test/test_asyncore.py @@ -389,6 +389,7 @@ if hasattr(asyncore, 'file_wrapper'): 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) @@ -402,6 +403,7 @@ if hasattr(asyncore, 'file_wrapper'): 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) |