summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncore.py
Commit message (Collapse)AuthorAgeFilesLines
* (Merge 3.4) Issue #11453, #18174: Fix leak of file descriptor in test_asyncoreVictor Stinner2014-07-281-0/+4
|\
| * Issue #11453, #18174: Fix leak of file descriptor in test_asyncoreVictor Stinner2014-07-281-0/+4
| |
* | Issue #21566: Make use of socket.listen() default backlog.Charles-François Natali2014-07-231-1/+1
| |
* | (Merge 3.4) Issue #11453: asyncore: emit a ResourceWarning when an unclosedVictor Stinner2014-06-271-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_wrapperVictor Stinner2014-06-271-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 Stinner2014-06-271-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 Stinner2014-06-271-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-291-17/+0
| | | | | | | | __getattr__ cheap inheritance hack.
* | Issue #7221: remove redundant tests in test_asyncore. Patch by Jessica ↵Antoine Pitrou2014-04-191-6/+1
|/ | | | McKellar.
* Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-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 Pitrou2013-08-211-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-161-3/+10
| | | | accidentally hang.
* test_asyncore: wait explicitly for a thread termination (this dangling threadCharles-François Natali2013-01-131-1/+1
|\ | | | | | | could be the cause of a random failure).
| * test_asyncore: wait explicitly for a thread termination (this dangling threadCharles-François Natali2013-01-131-1/+1
| |\ | | | | | | | | | could be the cause of a random failure).
| | * test_asyncore: wait explicitly for a thread termination (this dangling threadCharles-François Natali2013-01-131-0/+1
| | | | | | | | | | | | could be the cause of a random failure).
* | | #16896: merge with 3.3.Ezio Melotti2013-01-101-16/+8
|\ \ \ | |/ /
| * | #16896: test_asyncore now works with unittest test discovery. Patch by ↵Ezio Melotti2013-01-101-16/+8
| | | | | | | | | | | | Zachary Ware.
* | | Issue #16717: get rid of socket.error, replace with OSErrorAndrew Svetlov2012-12-181-3/+3
|/ /
* | Set a time threshold in test_asyncore.capture_server so that tests don'tKristján Valur Jónsson2012-04-061-3/+4
| | | | | | | | deadlock if the main thread fails before sending all the data.
* | attempt to fix asyncore buildbot failureGiampaolo Rodola'2012-03-231-5/+9
|\ \ | |/
| * attempt to fix asyncore buildbot failureGiampaolo Rodola'2012-03-231-3/+7
| |
* | fix failing asyncore test as per http://bugs.python.org/issue10340#msg156586Giampaolo Rodola'2012-03-231-10/+12
| |
* | merge 79422b3684f1 in 3.3 branch (issue 10340)Giampaolo Rodola'2012-03-221-0/+16
|\ \ | |/
| * fix #10340: properly handle EINVAL on OSX and also avoid to call ↵Giampaolo Rodola'2012-03-221-0/+16
| | | | | | | | handle_connect() in case of a disconnetected socket which is not meant to connect.
| * Merged revisions 88604 via svnmerge fromGiampaolo Rodolà2011-02-251-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 Natali2011-11-021-0/+1
| |
* | test_asyncore: Enable tests of Unix domain sockets with poll().Charles-François Natali2011-10-311-2/+9
| |
* | Issue #5661: on EPIPE/ECONNRESET, OS X returns the FD with the POLLPRI flag...Charles-François Natali2011-10-291-0/+4
| |
* | Issue #5661: Add a test for ECONNRESET/EPIPE handling to test_asyncore. PatchCharles-François Natali2011-10-291-0/+28
| | | | | | | | by Xavier de Gaye.
* | Issue #12656: Really fix test_asyncore failures on Windows buildbots...Charles-François Natali2011-08-241-1/+2
| |
* | Issue #12656: Fix test_asyncore failures on Windows buildbots.Charles-François Natali2011-08-241-5/+7
| |
* | Issue #12656: Add tests for IPv6 and Unix sockets to test_asyncore.Charles-François Natali2011-08-241-46/+85
| |
* | Issue 11177: asyncore's create_socket() arguments can now be omitted.Giampaolo Rodolà2011-02-251-10/+10
| |
* | (issue 11214) - fix asyncore.strerror test failure on AIXGiampaolo Rodolà2011-02-251-1/+1
|/
* #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵Ezio Melotti2010-12-011-2/+2
| | | | assertRaisesRegex.
* fix leaking socketsBenjamin Peterson2010-10-311-0/+2
|
* have test_asyncore properly close files.Brett Cannon2010-10-291-2/+4
|
* Issue #7523: Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module,Antoine Pitrou2010-10-141-1/+2
| | | | where supported by the system. Patch by Nikita Vetoshkin.
* Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcherGiampaolo Rodolà2010-10-041-5/+28
|
* #9354: Provide getsockopt() in asyncore file_wrapper(). Patch by Lukas Langa.Georg Brandl2010-07-281-0/+13
|
* With skipUnless there is no need to add test classes conditionally.Ezio Melotti2010-07-271-6/+3
|
* Use proper skips and assert* methods in test_asyncore.Ezio Melotti2010-07-271-96/+97
|
* Merged revisions 81294 via svnmerge fromGiampaolo Rodolà2010-05-181-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 fromGiampaolo Rodolà2010-05-121-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 fromGiampaolo Rodolà2010-05-101-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 ........
* Merged revisions 80875 via svnmerge fromGiampaolo Rodolà2010-05-061-0/+17
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80875 | giampaolo.rodola | 2010-05-06 19:57:06 +0200 (gio, 06 mag 2010) | 1 line Fix asyncore issues 8573 and 8483: _strerror might throw ValueError; asyncore.__getattr__ cheap inheritance caused confusing error messages when accessing undefined class attributes; added an alias for __str__ which now is used as a fallback for __repr__ ........
* Merged revisions 80552-80556,80564-80566,80568-80571 via svnmerge fromVictor Stinner2010-04-281-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80552 | victor.stinner | 2010-04-27 23:46:03 +0200 (mar., 27 avril 2010) | 3 lines Issue #7449, part 1: fix test_support.py for Python compiled without thread ........ r80553 | victor.stinner | 2010-04-27 23:47:01 +0200 (mar., 27 avril 2010) | 1 line Issue #7449, part 2: regrtest.py -j option requires thread support ........ r80554 | victor.stinner | 2010-04-27 23:51:26 +0200 (mar., 27 avril 2010) | 9 lines Issue #7449 part 3, test_doctest: import trace module in test_coverage() Import trace module fail if the threading module is missing. test_coverage() is only used if test_doctest.py is used with the -c option. This commit allows to execute the test suite without thread support. Move "import trace" in test_coverage() and use test_support.import_module('trace'). ........ r80555 | victor.stinner | 2010-04-27 23:56:26 +0200 (mar., 27 avril 2010) | 6 lines Issue #7449, part 4: skip test_multiprocessing if thread support is disabled import threading after _multiprocessing to raise a more revelant error message: "No module named _multiprocessing". _multiprocessing is not compiled without thread support. ........ r80556 | victor.stinner | 2010-04-28 00:01:24 +0200 (mer., 28 avril 2010) | 8 lines Issue #7449, part 5: split Test.test_open() of ctypes/test/test_errno.py * Split Test.test_open() in 2 functions: test_open() and test_thread_open() * Skip test_open() and test_thread_open() if we are unable to find the C library * Skip test_thread_open() if thread support is disabled * Use unittest.skipUnless(os.name == "nt", ...) on test_GetLastError() ........ r80564 | victor.stinner | 2010-04-28 00:59:35 +0200 (mer., 28 avril 2010) | 4 lines Issue #7449, part 6: fix test_hashlib for missing threading module Move @test_support.reap_thread decorator from test_main() to test_threaded_hashing(). ........ r80565 | victor.stinner | 2010-04-28 01:01:29 +0200 (mer., 28 avril 2010) | 6 lines Issue #7449, part 7: simplify threading detection in test_capi * Skip TestPendingCalls if threading module is missing * Test if threading module is present or not, instead of test the presence of _testcapi._test_thread_state ........ r80566 | victor.stinner | 2010-04-28 01:03:16 +0200 (mer., 28 avril 2010) | 4 lines Issue #7449, part 8: don't skip the whole test_asynchat if threading is missing TestFifo can be executed without the threading module ........ r80568 | victor.stinner | 2010-04-28 01:14:58 +0200 (mer., 28 avril 2010) | 6 lines Issue #7449, part 9: fix test_xmlrpclib for missing threading module * Skip testcases using threads if threading module is missing * Use "http://" instead of URL in ServerProxyTestCase if threading is missing because URL is not set in this case ........ r80569 | victor.stinner | 2010-04-28 01:33:58 +0200 (mer., 28 avril 2010) | 6 lines Partial revert of r80556 (Issue #7449, part 5, fix ctypes test) Rewrite r80556: the thread test have to be executed just after the test on libc_open() and so the test cannot be splitted in two functions (without duplicating code, and I don't want to duplicate code). ........ r80570 | victor.stinner | 2010-04-28 01:51:16 +0200 (mer., 28 avril 2010) | 8 lines Issue #7449, part 10: test_cmd imports trace module using test_support.import_module() Use test_support.import_module() instead of import to raise a SkipTest exception if the import fail. Import trace fails if the threading module is missing. See also part 3: test_doctest: import trace module in test_coverage(). ........ r80571 | victor.stinner | 2010-04-28 01:55:59 +0200 (mer., 28 avril 2010) | 6 lines Issue #7449, last part (11): fix many tests if thread support is disabled * Use try/except ImportError or test_support.import_module() to import thread and threading modules * Add @unittest.skipUnless(threading, ...) to testcases using threads ........
* Merged revisions 75826 via svnmerge fromAntoine Pitrou2009-10-271-25/+29
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75826 | antoine.pitrou | 2009-10-27 19:36:47 +0100 (mar., 27 oct. 2009) | 3 lines Suppress transient refleaks in test_asyncore ........
* Merged revisions 71553 via svnmerge fromR. David Murray2009-04-131-4/+1
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71553 | r.david.murray | 2009-04-12 21:06:46 -0400 (Sun, 12 Apr 2009) | 3 lines Adjust test_asyncore to account for intentional asyncore behavior change introduced by r70934 that was causing a test failure when run under -O. ........
* Merged revisions 70873,70904,70934,71490 via svnmerge fromR. David Murray2009-04-121-38/+22
| | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70873 | josiah.carlson | 2009-03-31 15:32:34 -0400 (Tue, 31 Mar 2009) | 2 lines This resolves issue 1161031. Tests pass. ........ r70904 | josiah.carlson | 2009-03-31 17:49:36 -0400 (Tue, 31 Mar 2009) | 3 lines Made handle_expt_event() be called last, so that we don't accidentally read after closing the socket. ........ r70934 | josiah.carlson | 2009-03-31 21:28:11 -0400 (Tue, 31 Mar 2009) | 2 lines Fix for failing asyncore tests. ........ r71490 | r.david.murray | 2009-04-11 13:52:56 -0400 (Sat, 11 Apr 2009) | 4 lines Make test_asyncore tests match code changes introduced by the fix to Issue1161031, refactoring the test to simplify it in the process. ........