summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socketserver.py
Commit message (Collapse)AuthorAgeFilesLines
* Convert an assert to a raise so it works even in the presence of -O.Collin Winter2007-03-101-2/+4
|
* Bug #1531963: Make SocketServer.TCPServer's server_address always be equal ↵Collin Winter2007-03-101-0/+1
| | | | | | to calling getsockname() on the server's socket. Fixed by patch #1545011. Backported from r54253.
* Fix the test for SocketServer so it should pass on cygwin and not failNeal Norwitz2006-08-151-0/+9
| | | | | | | | sporadically on other platforms. This is really a band-aid that doesn't fix the underlying issue in SocketServer. It's not clear if it's worth it to fix SocketServer, however, I opened a bug to track it: http://python.org/sf/1540386
* Add new utility function, reap_children(), to test_support. This shouldNeal Norwitz2006-06-291-1/+3
| | | | | | | | | | be called at the end of each test that spawns children (perhaps it should be called from regrtest instead?). This will hopefully prevent some of the unexplained failures in the buildbots (hppa and alpha) during tests that spawn children. The problems were not reproducible. There were many zombies that remained at the end of several tests. In the worst case, this shouldn't cause any more problems, though it may not help either. Time will tell.
* Fix the socket tests so they can be run concurrently. Backport candidateNeal Norwitz2006-06-121-1/+25
|
* Fixes for AF_UNIX support on OS/2:Andrew MacIntyre2004-04-111-4/+19
| | | | | | | | | - return the full size of the sockaddr_un structure, without which bind() fails with EINVAL; - set test_socketserver to use a socket name that meets the form required by the underlying implementation; - don't bother exercising the forking AF_UNIX tests on EMX - its fork() can't handle the stress.
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-1/+1
| | | | From SF patch #852334.
* EMX fork() emulation not good enough to cope with test_socketserverAndrew MacIntyre2003-01-021-2/+2
|
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-2/+2
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Use sendall() in the stream test instead of send().Guido van Rossum2001-10-291-1/+1
|
* Make test_socketserver require the network resource.Tim Peters2001-09-181-0/+2
| | | | Add it back to the list of tests we expect to skip on Windows.
* Rework akin to test_threaded_import, so that this can run under regrtest.Tim Peters2001-09-171-7/+8
| | | | | Also raise TestSkipped (intead of appearing to fail) if the import lock is held.
* Should raise TestSkipped, not ImportError, when deciding to skip theGuido van Rossum2001-07-131-2/+2
| | | | test.
* Ported to Windows:Guido van Rossum2001-07-101-5/+6
| | | | | | - Set the host to "localhost" instead of "". - Skip the AF_UNIX tests when socket.AF_UNIX is not defined.
* A test suite for SocketServer.py that exposes the various bugs justGuido van Rossum2001-07-101-0/+161
fixed. Regrettably, this must be run manually -- somehow the I/O redirection of the regression test breaks the test. When run under the regression test, this raises ImportError with a warning to that effect. Bugfix candidate!