Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-30980: Fix double close in asyncore.file_wrapper (#2789) (#2898) | Nir Soffer | 2017-07-26 | 1 | -1/+4 |
| | | | | | | | | | | | | | | * bpo-30980: Fix close test to fail test_close_twice was not considering the fact that file_wrapper is duping the file descriptor. Closing the original descriptor left the duped one open, hiding the fact that close protection is not effective. * bpo-30980: Fix double close protection Invalidated self.fd before closing, handling correctly the case when os.close raises. * bpo-30980: Fix fd leak introduced in the fixed test | ||||
* | [3.6] bpo-30106: Fix test_asyncore.test_quick_connect() (#1336) | Victor Stinner | 2017-04-28 | 1 | -40/+40 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix/optimize test_asyncore.test_quick_connect() (#1188) Don't use addCleanup() in test_quick_connect() because it keeps the Thread object alive and so @reap_threads fails on its timeout of 1 second. "./python -m test -v test_asyncore -m test_quick_connect" now takes 185 ms, instead of 11 seconds. Other minor changes: * Use "with sock:" to close the socket instead of try/finally: sock.close() * Use self.skipTest() in test_quick_connect() to remove one indentation level and notice user that the test is specific to AF_INET and AF_INET6 * bpo-30106: Fix tearDown() of test_asyncore (#1194) Call asyncore.close_all() with ignore_all=True in the tearDown() method of the test_asyncore base test case. It should prevent keeping alive sockets in asyncore.socket_map if close() fails with an unexpected error. Revert also an unwanted change of my previous commit: remove name parameter of Thread in test_quick_connect(). * bpo-30106: Fix test_asyncore.test_quick_connect() (#1234) test_quick_connect() runs a thread up to 50 seconds, whereas the socket is connected in 0.2 second and then the thread is expected to end in less than 3 second. On Linux, the thread ends quickly because select() seems to always return quickly. On FreeBSD, sometimes select() fails with timeout and so the thread runs much longer than expected. Fix the thread timeout to fix a race condition in the test. | ||||
* | [3.6] bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS (#463) | Ned Deily | 2017-03-04 | 1 | -0/+3 |
| | | | | | | | Skip some tests of select.poll when running on macOS due to unresolved issues with the underlying system poll function on some macOS versions. (cherry picked from commit de04644627f82d9dc48b3423def7ff5b4aa1926a) | ||||
* | Issue #28683: Fix the tests that bind() a unix socket and raise PermissionError | Xavier de Gaye | 2016-12-14 | 1 | -1/+3 |
| | | | | on Android for a non-root user. | ||||
* | Adds test.support.PGO and skips tests that are not useful for PGO. | Steve Dower | 2016-09-07 | 1 | -0/+3 |
| | |||||
* | (Merge 3.4) Issue #11453, #18174: Fix leak of file descriptor in test_asyncore | Victor Stinner | 2014-07-28 | 1 | -0/+4 |
|\ | |||||
| * | Issue #11453, #18174: Fix leak of file descriptor in test_asyncore | Victor Stinner | 2014-07-28 | 1 | -0/+4 |
| | | |||||
* | | Issue #21566: Make use of socket.listen() default backlog. | Charles-François Natali | 2014-07-23 | 1 | -1/+1 |
| | | |||||
* | | (Merge 3.4) Issue #11453: asyncore: emit a ResourceWarning when an unclosed | Victor Stinner | 2014-06-27 | 1 | -0/+16 |
|\ \ | |/ | | | | | | | file_wrapper object is destroyed. The destructor now closes the file if needed. The close() method can now be called twice: the second call does nothing. | ||||
| * | Issue #11453: asyncore: emit a ResourceWarning when an unclosed file_wrapper | Victor Stinner | 2014-06-27 | 1 | -0/+16 |
| | | | | | | | | | | object is destroyed. The destructor now closes the file if needed. The close() method can now be called twice: the second call does nothing. | ||||
* | | (Merge 3.4) Closes #21582: Cleanup test_asyncore. Patch written by diana. | Victor Stinner | 2014-06-27 | 1 | -36/+17 |
|\ \ | |/ | | | | | | | | | - Use support.captured_stderr() where appropriate - Removes some "from test.support import xxx" import and uses support.xxx instead. | ||||
| * | Closes #21582: Cleanup test_asyncore. Patch written by diana. | Victor Stinner | 2014-06-27 | 1 | -36/+18 |
| | | | | | | | | | | | | - Use support.captured_stderr() where appropriate - Removes some "from test.support import xxx" import and uses support.xxx instead. | ||||
* | | fix isuse #13248: remove previously deprecated asyncore.dispatcher ↵ | Giampaolo Rodola' | 2014-04-29 | 1 | -17/+0 |
| | | | | | | | | __getattr__ cheap inheritance hack. | ||||
* | | Issue #7221: remove redundant tests in test_asyncore. Patch by Jessica ↵ | Antoine Pitrou | 2014-04-19 | 1 | -6/+1 |
|/ | | | | McKellar. | ||||
* | Issue #18571: Implementation of the PEP 446: file descriptors and file handles | Victor Stinner | 2013-08-27 | 1 | -1/+6 |
| | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable(). | ||||
* | Issue #18792: Use "127.0.0.1" or "::1" instead of "localhost" as much as ↵ | Antoine Pitrou | 2013-08-21 | 1 | -3/+2 |
| | | | | possible, since "localhost" goes through a DNS lookup under recent Windows versions. | ||||
* | Issue #17992: Add timeouts to asyncore and asynchat tests so that they won't ↵ | Giampaolo Rodola' | 2013-05-16 | 1 | -3/+10 |
| | | | | accidentally hang. | ||||
* | test_asyncore: wait explicitly for a thread termination (this dangling thread | Charles-François Natali | 2013-01-13 | 1 | -1/+1 |
|\ | | | | | | | could be the cause of a random failure). | ||||
| * | test_asyncore: wait explicitly for a thread termination (this dangling thread | Charles-François Natali | 2013-01-13 | 1 | -1/+1 |
| |\ | | | | | | | | | | could be the cause of a random failure). | ||||
| | * | test_asyncore: wait explicitly for a thread termination (this dangling thread | Charles-François Natali | 2013-01-13 | 1 | -0/+1 |
| | | | | | | | | | | | | could be the cause of a random failure). | ||||
* | | | #16896: merge with 3.3. | Ezio Melotti | 2013-01-10 | 1 | -16/+8 |
|\ \ \ | |/ / | |||||
| * | | #16896: test_asyncore now works with unittest test discovery. Patch by ↵ | Ezio Melotti | 2013-01-10 | 1 | -16/+8 |
| | | | | | | | | | | | | Zachary Ware. | ||||
* | | | Issue #16717: get rid of socket.error, replace with OSError | Andrew Svetlov | 2012-12-18 | 1 | -3/+3 |
|/ / | |||||
* | | Set a time threshold in test_asyncore.capture_server so that tests don't | Kristján Valur Jónsson | 2012-04-06 | 1 | -3/+4 |
| | | | | | | | | deadlock if the main thread fails before sending all the data. | ||||
* | | attempt to fix asyncore buildbot failure | Giampaolo Rodola' | 2012-03-23 | 1 | -5/+9 |
|\ \ | |/ | |||||
| * | attempt to fix asyncore buildbot failure | Giampaolo Rodola' | 2012-03-23 | 1 | -3/+7 |
| | | |||||
* | | fix failing asyncore test as per http://bugs.python.org/issue10340#msg156586 | Giampaolo Rodola' | 2012-03-23 | 1 | -10/+12 |
| | | |||||
* | | merge 79422b3684f1 in 3.3 branch (issue 10340) | Giampaolo Rodola' | 2012-03-22 | 1 | -0/+16 |
|\ \ | |/ | |||||
| * | fix #10340: properly handle EINVAL on OSX and also avoid to call ↵ | Giampaolo Rodola' | 2012-03-22 | 1 | -0/+16 |
| | | | | | | | | handle_connect() in case of a disconnetected socket which is not meant to connect. | ||||
| * | Merged revisions 88604 via svnmerge from | Giampaolo Rodolà | 2011-02-25 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88604 | giampaolo.rodola | 2011-02-25 21:05:48 +0100 (ven, 25 feb 2011) | 1 line (issue 11214) - fix asyncore.strerror test failure on AIX ........ | ||||
* | | test_asyncore: Actually try to received OOB data. | Charles-François Natali | 2011-11-02 | 1 | -0/+1 |
| | | |||||
* | | test_asyncore: Enable tests of Unix domain sockets with poll(). | Charles-François Natali | 2011-10-31 | 1 | -2/+9 |
| | | |||||
* | | Issue #5661: on EPIPE/ECONNRESET, OS X returns the FD with the POLLPRI flag... | Charles-François Natali | 2011-10-29 | 1 | -0/+4 |
| | | |||||
* | | Issue #5661: Add a test for ECONNRESET/EPIPE handling to test_asyncore. Patch | Charles-François Natali | 2011-10-29 | 1 | -0/+28 |
| | | | | | | | | by Xavier de Gaye. | ||||
* | | Issue #12656: Really fix test_asyncore failures on Windows buildbots... | Charles-François Natali | 2011-08-24 | 1 | -1/+2 |
| | | |||||
* | | Issue #12656: Fix test_asyncore failures on Windows buildbots. | Charles-François Natali | 2011-08-24 | 1 | -5/+7 |
| | | |||||
* | | Issue #12656: Add tests for IPv6 and Unix sockets to test_asyncore. | Charles-François Natali | 2011-08-24 | 1 | -46/+85 |
| | | |||||
* | | Issue 11177: asyncore's create_socket() arguments can now be omitted. | Giampaolo Rodolà | 2011-02-25 | 1 | -10/+10 |
| | | |||||
* | | (issue 11214) - fix asyncore.strerror test failure on AIX | Giampaolo Rodolà | 2011-02-25 | 1 | -1/+1 |
|/ | |||||
* | #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵ | Ezio Melotti | 2010-12-01 | 1 | -2/+2 |
| | | | | assertRaisesRegex. | ||||
* | fix leaking sockets | Benjamin Peterson | 2010-10-31 | 1 | -0/+2 |
| | |||||
* | have test_asyncore properly close files. | Brett Cannon | 2010-10-29 | 1 | -2/+4 |
| | |||||
* | Issue #7523: Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module, | Antoine Pitrou | 2010-10-14 | 1 | -1/+2 |
| | | | | where supported by the system. Patch by Nikita Vetoshkin. | ||||
* | Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcher | Giampaolo Rodolà | 2010-10-04 | 1 | -5/+28 |
| | |||||
* | #9354: Provide getsockopt() in asyncore file_wrapper(). Patch by Lukas Langa. | Georg Brandl | 2010-07-28 | 1 | -0/+13 |
| | |||||
* | With skipUnless there is no need to add test classes conditionally. | Ezio Melotti | 2010-07-27 | 1 | -6/+3 |
| | |||||
* | Use proper skips and assert* methods in test_asyncore. | Ezio Melotti | 2010-07-27 | 1 | -96/+97 |
| | |||||
* | Merged revisions 81294 via svnmerge from | Giampaolo Rodolà | 2010-05-18 | 1 | -0/+9 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81294 | giampaolo.rodola | 2010-05-18 22:04:31 +0200 (mar, 18 mag 2010) | 1 line Fix issue #8573 (asyncore._strerror bug): fixed os.strerror typo; included NameError in the tuple of expected exception; added test case for asyncore._strerror. ........ | ||||
* | Merged revisions 81102 via svnmerge from | Giampaolo Rodolà | 2010-05-12 | 1 | -6/+2 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81102 | giampaolo.rodola | 2010-05-12 02:29:27 +0200 (mer, 12 mag 2010) | 1 line Removed the assertion that dispatcher.connected attribute must be False after a single connect() call. Solaris and FreeBSD buildbots failures showed how connect() can succeed even in a single call. All bo failures should definitively be fixed now. ........ | ||||
* | Merged revisions 81043 via svnmerge from | Giampaolo Rodolà | 2010-05-10 | 1 | -1/+275 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81043 | giampaolo.rodola | 2010-05-10 17:33:22 +0200 (lun, 10 mag 2010) | 1 line Issue #8490: adds a more solid test suite for asyncore ........ |