summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
Commit message (Collapse)AuthorAgeFilesLines
* #15284: Skip {send,recv}msg tests with disabled IPv6Ross Lagerwall2012-07-081-5/+5
| | | | Patch by Brian Brazil.
* Errors in "client" methods in test_socket were ignored because of a bogus ↵Antoine Pitrou2012-06-231-1/+2
| | | | | | except clause. (this could reveal test failures!)
* Issue #14310: Catch testing errors when trying to create unsupported socketKristján Valur Jónsson2012-04-071-1/+4
| | | | types on some platforms.
* Issue #14310: inter-process socket duplication for windowsKristján Valur Jónsson2012-04-071-0/+105
|
* Issue #13872: socket.detach() now marks the socket closed (as mirrored in ↵Antoine Pitrou2012-03-311-0/+1
|\ | | | | | | | | | | the socket repr()). Patch by Matt Joiner.
| * Issue #13872: socket.detach() now marks the socket closed (as mirrored in ↵Antoine Pitrou2012-03-311-0/+1
| | | | | | | | | | | | the socket repr()). Patch by Matt Joiner.
* | Issue #12804: Fix test failures on systems without internet access.Nadeem Vawda2012-01-251-0/+6
| |
* | Remove redundant resource check in test_socket.Nadeem Vawda2012-01-251-1/+0
| |
* | Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch byCharles-François Natali2012-01-021-0/+7
|\ \ | |/ | | | | Vilmos Nebehaj.
| * Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch byCharles-François Natali2012-01-021-0/+7
| | | | | | | | Vilmos Nebehaj.
* | Issue #5424: add tests for inet_ntoa, inet_ntop, inet_aton and inet_pton.Antoine Pitrou2011-12-191-0/+65
|\ \ | |/ | | | | Patch by Philipp Hagemeister.
| * Issue #5424: add tests for inet_ntoa, inet_ntop, inet_aton and inet_pton.Antoine Pitrou2011-12-191-0/+65
| | | | | | | | Patch by Philipp Hagemeister.
* | Skip test if the path is too long for a AF_UNIX socketAntoine Pitrou2011-12-161-4/+16
| |
* | Issue #8373: The filesystem path of AF_UNIX sockets now uses the filesystemAntoine Pitrou2011-12-161-1/+62
| | | | | | | | | | encoding and the surrogateescape error handler, rather than UTF-8. Patch by David Watson.
* | #11112: merge with 3.2.Ezio Melotti2011-11-181-1/+1
|\ \ | |/
| * #11112: Fix typo in a base class in test_socket.Ezio Melotti2011-11-181-1/+1
| |
* | Fix test_socket when built whithout threads.Charles-François Natali2011-11-101-1/+4
| |
* | Issue #7777: socket: Add Reliable Datagram Sockets (PF_RDS) support.Charles-François Natali2011-11-101-0/+159
| |
* | Use InterruptedError instead of checking for EINTRAntoine Pitrou2011-10-231-1/+1
| |
* | Fix deprecation warningAntoine Pitrou2011-10-111-2/+2
| |
* | Fix the threading infrastructure in test_socket to support skippingAntoine Pitrou2011-10-101-10/+14
| | | | | | | | | | tests from the setUp() routine. This fixes a refleak in test_socket on some machines.
* | Issue #10141: socket: add SocketCAN (PF_CAN) support. Initial patch by MatthiasCharles-François Natali2011-10-061-0/+164
| | | | | | | | Fuchs, updated by Tiago Gonçalves.
* | Issue #13001: Fix test_socket.testRecvmsgTrunc failure on FreeBSD < 8, whichCharles-François Natali2011-10-031-0/+4
| | | | | | | | doesn't always set the MSG_TRUNC flag when a truncated datagram is received.
* | Fix ResourceWarnings in the TIPC socket tests.Antoine Pitrou2011-10-021-2/+7
|\ \ | |/
| * Fix ResourceWarnings in the TIPC socket tests.Antoine Pitrou2011-10-021-2/+7
| |
* | Fix a race condition in test_socket.ThreadableTest: the client is reportedCharles-François Natali2011-09-211-1/+1
|\ \ | |/ | | | | ready before having been set up.
| * Fix a race condition in test_socket.ThreadableTest: the client is reported asCharles-François Natali2011-09-211-1/+1
| | | | | | | | ready before having been set up.
* | Close issue 12958 by flagging expected failures in test_socket on Mac OS XNick Coghlan2011-09-191-0/+13
| |
* | Fix deprecation warnings in test_socket.Nadeem Vawda2011-08-221-14/+14
| |
* | Add support for the send/recvmsg API to the socket module. Patch by David ↵Nick Coghlan2011-08-221-0/+2120
| | | | | | | | Watson and Heiko Wundram. (Closes #6560)
* | Issue #12326: refactor usage of sys.platformVictor Stinner2011-08-201-5/+3
| | | | | | | | | | | | | | | | * Use str.startswith(tuple): I didn't know this Python feature, Python rocks! * Replace sometimes sys.platform.startswith('linux') with sys.platform == 'linux' * sys.platform doesn't contain the major version on Cygwin on Mac OS X (it's just 'cygwin' and 'darwin')
* | Issue #12326: don't test the major version of sys.platformVictor Stinner2011-08-171-1/+1
| | | | | | | | | | Use startswith, instead of ==, when testing sys.platform to support new platforms like Linux 3 or OpenBSD 5.
* | Issue #12196: Make test.support's requires_linux_version a decorator.Charles-François Natali2011-06-031-12/+3
| |
* | Issue #12158: Move linux_version() from test_socket to test.supportVictor Stinner2011-05-231-11/+3
| |
* | Issue #1746656: make if_nameindex(), if_indextoname() and if_nametoindex()Charles-François Natali2011-05-201-2/+18
| | | | | | | | accept and return str instead of bytes arrays. Add some more tests.
* | Issue #1746656: Add if_nameindex, if_nametoindex, if_indextonameGregory P. Smith2011-05-151-0/+10
| | | | | | | | methods to the socket module.
* | Issue #12054: use support.find_unused_port() instead of reinventing the wheelAntoine Pitrou2011-05-101-16/+2
|\ \ | |/
| * Issue #12054: use support.find_unused_port() instead of reinventing the wheelAntoine Pitrou2011-05-101-16/+2
| |
* | Issue #8498: In socket.accept(), allow to specify 0 as a backlog value inAntoine Pitrou2011-05-101-0/+7
|\ \ | |/ | | | | order to accept exactly one connection. Patch by Daniel Evers.
| * Issue #8498: In socket.accept(), allow to specify 0 as a backlog value inAntoine Pitrou2011-05-101-0/+7
| | | | | | | | order to accept exactly one connection. Patch by Daniel Evers.
* | Refactor buggy test to correctly use the msg argument of assertRaises.Ezio Melotti2011-05-081-9/+4
| |
* | #5421: merge with 3.2.Ezio Melotti2011-05-071-0/+44
|\ \ | |/
| * #5421: merge with 3.1.Ezio Melotti2011-05-071-0/+44
| |\
| | * #5421: add tests.Ezio Melotti2011-05-071-0/+30
| | |
| | * Merged revisions ↵Georg Brandl2010-11-261-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 86134,86315-86316,86390,86424-86425,86428,86550,86561-86562,86564-86565,86705,86708,86713 via svnmerge from svn+ssh://svn.python.org/python/branches/py3k ........ r86134 | georg.brandl | 2010-11-03 08:41:00 +0100 (Mi, 03 Nov 2010) | 1 line A newline in lineno output breaks pyframe output. ........ r86315 | georg.brandl | 2010-11-08 12:05:18 +0100 (Mo, 08 Nov 2010) | 1 line Fix latex conversion glitch in property/feature descriptions. ........ r86316 | georg.brandl | 2010-11-08 12:08:35 +0100 (Mo, 08 Nov 2010) | 1 line Fix typo. ........ r86390 | georg.brandl | 2010-11-10 08:57:10 +0100 (Mi, 10 Nov 2010) | 1 line Fix typo. ........ r86424 | georg.brandl | 2010-11-12 07:19:48 +0100 (Fr, 12 Nov 2010) | 1 line Build a PDF of the FAQs too. ........ r86425 | georg.brandl | 2010-11-12 07:20:12 +0100 (Fr, 12 Nov 2010) | 1 line #10008: Fix duplicate index entry. ........ r86428 | georg.brandl | 2010-11-12 09:09:26 +0100 (Fr, 12 Nov 2010) | 1 line Fix weird line block in table. ........ r86550 | georg.brandl | 2010-11-20 11:24:34 +0100 (Sa, 20 Nov 2010) | 1 line Fix rst markup errors. ........ r86561 | georg.brandl | 2010-11-20 12:47:10 +0100 (Sa, 20 Nov 2010) | 1 line #10460: Update indent.pro to match PEP 7 better. ........ r86562 | georg.brandl | 2010-11-20 14:44:41 +0100 (Sa, 20 Nov 2010) | 1 line #10439: document PyCodec C APIs. ........ r86564 | georg.brandl | 2010-11-20 15:08:53 +0100 (Sa, 20 Nov 2010) | 1 line #10460: an even better indent.pro. ........ r86565 | georg.brandl | 2010-11-20 15:16:17 +0100 (Sa, 20 Nov 2010) | 1 line socket.gethostbyname(socket.gethostname()) can fail when host name resolution is not set up correctly; do not fail test_socket if this is the case. ........ r86705 | georg.brandl | 2010-11-23 08:54:19 +0100 (Di, 23 Nov 2010) | 1 line #10468: document Unicode exception creation and access functions. ........ r86708 | georg.brandl | 2010-11-23 09:37:54 +0100 (Di, 23 Nov 2010) | 2 lines #10511: clarification of what heaps are; suggested by Johannes Hoff. ........ r86713 | georg.brandl | 2010-11-23 19:14:57 +0100 (Di, 23 Nov 2010) | 1 line assert.h is also included. Thanks to Savio Sena. ........
| | * Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
| | * Merged revisions 86151 via svnmerge fromBrian Curtin2010-11-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86151 | brian.curtin | 2010-11-03 22:41:43 -0500 (Wed, 03 Nov 2010) | 3 lines Fix three ResourceWarnings. Mimic the clientTearDown from ThreadedTCPSocketTest, closing the socket. ........
| | * Merged revisions 85586-85587,85596-85598 via svnmerge fromGregory P. Smith2010-10-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85586 | gregory.p.smith | 2010-10-16 17:17:24 -0700 (Sat, 16 Oct 2010) | 2 lines fix for netbsd. ........ r85587 | gregory.p.smith | 2010-10-16 17:43:10 -0700 (Sat, 16 Oct 2010) | 3 lines applying netbsd-wizs-mod.patch from issue5510 - fixes for netbsd (and dragonflybsd?) ........ r85596 | gregory.p.smith | 2010-10-16 19:14:36 -0700 (Sat, 16 Oct 2010) | 6 lines Fix multiprocessing Semaphore's on netbsd5. SEM_VALUE_MAX is defined as (~0U) on NetBSD which was causing it to appear as -1 when used as a signed int for _multprocessing.SemLock.SEM_VALUE_MAX. This works around the problem by substituting INT_MAX on systems where it appears negative when used as an int. ........ r85597 | gregory.p.smith | 2010-10-16 19:57:19 -0700 (Sat, 16 Oct 2010) | 2 lines skip test_itimer_virtual on NetBSD to prevent the test suite from hanging. ........ r85598 | gregory.p.smith | 2010-10-16 20:09:12 -0700 (Sat, 16 Oct 2010) | 2 lines Avoid hanging the test on netbsd5. ........
| | * Merged revisions 85420 via svnmerge fromAntoine Pitrou2010-10-131-58/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85420 | antoine.pitrou | 2010-10-13 18:17:14 +0200 (mer., 13 oct. 2010) | 5 lines Issue #10041: The signature of optional arguments in socket.makefile() didn't match that of io.open(), and they also didn't get forwarded properly to TextIOWrapper in text mode. Patch by Kai Zhu. ........
| | * Merged revisions 85032 via svnmerge fromAntoine Pitrou2010-09-271-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85032 | antoine.pitrou | 2010-09-27 19:52:25 +0200 (lun., 27 sept. 2010) | 6 lines Issue #9950: Fix socket.sendall() crash or misbehaviour when a signal is received. Now sendall() properly calls signal handlers if necessary, and retries sending if these returned successfully, including on sockets with a timeout. ........