diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-09-02 20:41:25 (GMT) |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-09-02 20:41:25 (GMT) |
commit | 7aa42ea1bbe284901f03d4a5bdc02c8faf0fac71 (patch) | |
tree | 36c79b1c81422d3444df1f3a112230bc9c852904 /Lib | |
parent | 824f4f3cdcf304b39025e20b22b09fcbbceef43f (diff) | |
download | cpython-7aa42ea1bbe284901f03d4a5bdc02c8faf0fac71.zip cpython-7aa42ea1bbe284901f03d4a5bdc02c8faf0fac71.tar.gz cpython-7aa42ea1bbe284901f03d4a5bdc02c8faf0fac71.tar.bz2 |
Merged revisions 66162 via svnmerge from
svn+ssh://pythondev@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
........
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 450eee1..12ef247 100644 --- a/Lib/test/test_asyncore.py +++ b/Lib/test/test_asyncore.py @@ -390,6 +390,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) @@ -403,6 +404,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) |