fe9ebe4f4ff848cda1d4a5e398354b3be3fb984e |
|
24-Jul-2014 |
Victor Stinner <victor.stinner@gmail.com> |
Issue #16133: The asynchat.async_chat.handle_read() method now ignores socket.error() exceptions with blocking I/O errors: EAGAIN, EALREADY, EINPROGRESS, or EWOULDBLOCK. Initial patch written by Xavier de Gaye.
/external/python/cpython2/Lib/test/test_asynchat.py
|
09227b9111380cf4daf0afbdb29bc305b294c11c |
|
28-Apr-2010 |
Victor Stinner <victor.stinner@haypocalc.com> |
Issue #7449, part 8: don't skip the whole test_asynchat if threading is missing TestFifo can be executed without the threading module
/external/python/cpython2/Lib/test/test_asynchat.py
|
2227251a4e6a95984589e2af2d08ec4f18c9528d |
|
17-Mar-2010 |
Collin Winter <collinw@gmail.com> |
Fix a race condition in test_asynchat uncovered by the Unladen Swallow JIT.
/external/python/cpython2/Lib/test/test_asynchat.py
|
643e85df48c87f082b16ca9e4ac02856130fbdb3 |
|
30-Oct-2009 |
Antoine Pitrou <solipsis@pitrou.net> |
Try to fix transient refleaks in test_asynchat.
/external/python/cpython2/Lib/test/test_asynchat.py
|
59beec326a4721154a952027cb34c3e2e4612e28 |
|
30-Mar-2009 |
R. David Murray <rdmurray@bitdance.com> |
Add import_function method to test.test_support, and modify a number of tests that expect to be skipped if imports fail or functions don't exist to use import_function and import_module. The ultimate goal is to change regrtest to not skip automatically on ImportError. Checking in now to make sure the buldbots don't show any errors on platforms I can't direct test on.
/external/python/cpython2/Lib/test/test_asynchat.py
|
e41b0061dd908251a393f77b030c9e7308ecd5c5 |
|
09-Apr-2008 |
Trent Nelson <trent.nelson@snakebite.org> |
- Issue #2550: The approach used by client/server code for obtaining ports to listen on in network-oriented tests has been refined in an effort to facilitate running multiple instances of the entire regression test suite in parallel without issue. test_support.bind_port() has been fixed such that it will always return a unique port -- which wasn't always the case with the previous implementation, especially if socket options had been set that affected address reuse (i.e. SO_REUSEADDR, SO_REUSEPORT). The new implementation of bind_port() will actually raise an exception if it is passed an AF_INET/SOCK_STREAM socket with either the SO_REUSEADDR or SO_REUSEPORT socket option set. Furthermore, if available, bind_port() will set the SO_EXCLUSIVEADDRUSE option on the socket it's been passed. This currently only applies to Windows. This option prevents any other sockets from binding to the host/port we've bound to, thus removing the possibility of the 'non-deterministic' behaviour, as Microsoft puts it, that occurs when a second SOCK_STREAM socket binds and accepts to a host/port that's already been bound by another socket. The optional preferred port parameter to bind_port() has been removed. Under no circumstances should tests be hard coding ports! test_support.find_unused_port() has also been introduced, which will pass a temporary socket object to bind_port() in order to obtain an unused port. The temporary socket object is then closed and deleted, and the port is returned. This method should only be used for obtaining an unused port in order to pass to an external program (i.e. the -accept [port] argument to openssl's s_server mode) or as a parameter to a server-oriented class that doesn't give you direct access to the underlying socket used. Finally, test_support.HOST has been introduced, which should be used for the host argument of any relevant socket calls (i.e. bind and connect). The following tests were updated to following the new conventions: test_socket, test_smtplib, test_asyncore, test_ssl, test_httplib, test_poplib, test_ftplib, test_telnetlib, test_socketserver, test_asynchat and test_socket_ssl. It is now possible for multiple instances of the regression test suite to run in parallel without issue.
/external/python/cpython2/Lib/test/test_asynchat.py
|
6e070814b232d663e222dec7252d8d187d7195ab |
|
27-Jan-2008 |
Neal Norwitz <nnorwitz@gmail.com> |
Eliminate the sleeps that assume the server will start in .5 seconds. This should make the test less flaky. It also speeds up the test by about 75% on my box (20+ seconds -> ~4 seconds).
/external/python/cpython2/Lib/test/test_asynchat.py
|
4950442fb7c0b668a10143300d97ed4a70e4ff49 |
|
31-Jul-2007 |
Facundo Batista <facundobatista@gmail.com> |
When running asynchat tests on OS X (darwin), the test client now overrides asyncore.dispatcher.handle_expt to do nothing, since select.poll gives a POLLHUP error at the completion of these tests. Added timeout & count arguments to several asyncore.loop calls to avoid the possibility of a test hanging up a build. [GSoC - Alan McIntyre]
/external/python/cpython2/Lib/test/test_asynchat.py
|
ec62423be4a84a056a9a0a1203875b8a29279365 |
|
29-Jul-2007 |
Facundo Batista <facundobatista@gmail.com> |
Added tests for asynchat classes simple_producer & fifo, and the find_prefix_at_end function. Check behavior of a string given as a producer. Added tests for behavior of asynchat.async_chat when given int, long, and None terminator arguments. Added usepoll attribute to TestAsynchat to allow running the asynchat tests with poll support chosen whether it's available or not (improves coverage of asyncore code). [GSoC - Alan McIntyre]
/external/python/cpython2/Lib/test/test_asynchat.py
|
62bc8aadd4465da30e09c1003cc4bfea014670da |
|
13-Jun-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Don't fail if another process is listening on our port.
/external/python/cpython2/Lib/test/test_asynchat.py
|
7390942aa16be9b894c31563ec9f2b502ed28338 |
|
20-Jun-2005 |
Michael W. Hudson <mwh@python.net> |
test_asynchat is no longer expected to produce output. also, wait for threads to finish before proceeding.
/external/python/cpython2/Lib/test/test_asynchat.py
|
5ac2534bbc92b21dec5a69e78f42fe654cbc8b2b |
|
09-Jun-2005 |
Andrew M. Kuchling <amk@amk.ca> |
Convert asynchat test to unittest; exercise the client using a numeric value as the terminator
/external/python/cpython2/Lib/test/test_asynchat.py
|
70a6b49821a3226f55e9716f32d802d06640cb89 |
|
12-Feb-2004 |
Walter Dörwald <walter@livinglogic.de> |
Replace backticks with repr() or "%r" From SF patch #852334.
/external/python/cpython2/Lib/test/test_asynchat.py
|
f3ee46b82a8dd253b60179f004d9db9b145df2e6 |
|
15-Apr-2001 |
Guido van Rossum <guido@python.org> |
Set the SO_REUSEADDR socket option in the server thread -- this seems needed on some platforms (e.g. Solaris 8) when the test is run twice in quick succession.
/external/python/cpython2/Lib/test/test_asynchat.py
|
9df3eabd6ef2a0a177976eacb785e630680c0437 |
|
14-Apr-2001 |
Guido van Rossum <guido@python.org> |
Add "import thread" at the top of the module; this prevents us from failing later when Python is compiled without threading but a failing 'threading' module can be imported due to an earlier (caught) attempt.
/external/python/cpython2/Lib/test/test_asynchat.py
|
dca060c55c5eb4cb7b43faec7fb1a85217d1e752 |
|
06-Apr-2001 |
Guido van Rossum <guido@python.org> |
After testing the test on Unix, several improvements: - Use push() instead of send(), and make these calls in main(). - Sleep a second to give the server thread time to initialize itself.
/external/python/cpython2/Lib/test/test_asynchat.py
|
66172520ee5b0762274f010e0bfdffd1559876f3 |
|
06-Apr-2001 |
Guido van Rossum <guido@python.org> |
Add test for asynchat. This also tests asyncore.
/external/python/cpython2/Lib/test/test_asynchat.py
|