summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20246: Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.Stefan Krah2014-01-211-1/+1
|
* complain when nbytes > buflen to fix possible buffer overflow (closes #20246)Benjamin Peterson2014-01-141-0/+8
|\
| * complain when nbytes > buflen to fix possible buffer overflow (closes #20246)Benjamin Peterson2014-01-141-0/+10
| |
| * Issue #19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-101-9/+9
| |
| * Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-31/+33
| |
| * Issue #18643: Fix some test_socket failures due to large default socket bufferCharles-François Natali2013-08-291-2/+3
| | | | | | | | sizes.
| * Ensure that the fix for #17269 also works on OSX 10.4Ronald Oussoren2013-06-101-1/+2
| | | | | | | | AI_NUMERICSERV isn't defined on OSX 10.4.
| * Issue #17269: Workaround for a platform bug in getaddrinfo on OSXRonald Oussoren2013-05-241-0/+2
| | | | | | | | | | Without this patch socket.getaddrinfo crashed when called with some unusual argument combinations.
| * Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*,Terry Jan Reedy2013-03-111-1/+1
| | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett.
| * Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-191-4/+23
| | | | | | | | | | | | | | when result of PyInt_AsLong() or PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
| * issue #879399Kristján Valur Jónsson2012-12-251-1/+59
| | | | | | | | Fix line buffering of socket._fileobject
| * #8853: Allow port to be of type long for socket.getaddrinfo()Petri Lehtinen2012-12-201-1/+2
| |
| * Issue #16257: make test_create_connection() handle ENETUNREACH.Trent Nelson2012-10-181-1/+20
| |
| * Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch byCharles-François Natali2012-01-021-0/+10
| | | | | | | | Vilmos Nebehaj.
| * #11112: Fix typo in a base class in test_socket.Ezio Melotti2011-11-181-1/+1
| |
| * Fix another callable warning.Ezio Melotti2011-11-061-3/+2
| |
| * 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.
| * 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.
| * #10169: Fix argument parsing in socket.sendto() to avoid error masking.Ezio Melotti2011-05-071-0/+39
| |
| * Merged revisions 86561-86562,86564-86565,86705,86708,86713 via svnmerge fromGeorg Brandl2010-11-261-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ 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-31/+31
| | | | | | | | | | | | | | | | | | | | 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 86205 via svnmerge fromBrian Curtin2010-11-051-2/+2
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86205 | brian.curtin | 2010-11-05 10:47:45 -0500 (Fri, 05 Nov 2010) | 2 lines Add socket cleanup for ResourceWarning and update test to use skip decorator ........
| * 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. ........
| * Remove an assert which snuck in during merging from py3k.Brian Curtin2010-11-021-1/+0
| |
| * Merged revisions 86105 via svnmerge fromBrian Curtin2010-11-021-0/+26
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86105 | brian.curtin | 2010-11-01 21:07:09 -0500 (Mon, 01 Nov 2010) | 2 lines Clean up ResourceWarnings due to unclosed sockets. Added testDup which was not previously covered in 2.x. ........
| * 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 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. ........
| * Merged revisions 84597-84599 via svnmerge fromAntoine Pitrou2010-09-071-5/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84597 | antoine.pitrou | 2010-09-07 22:42:19 +0200 (mar., 07 sept. 2010) | 5 lines Issue #8574: better implementation of test.support.transient_internet(). Original patch by Victor. ........ r84598 | antoine.pitrou | 2010-09-07 23:05:49 +0200 (mar., 07 sept. 2010) | 6 lines Issue #9792: In case of connection failure, socket.create_connection() would swallow the exception and raise a new one, making it impossible to fetch the original errno, or to filter timeout errors. Now the original error is re-raised. ........ r84599 | antoine.pitrou | 2010-09-07 23:09:09 +0200 (mar., 07 sept. 2010) | 4 lines Improve transient_internet() again to detect more network errors, and use it in test_robotparser. Fixes #8574. ........
| * Merged revisions 84089 via svnmerge fromGiampaolo Rodolà2010-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84089 | giampaolo.rodola | 2010-08-16 07:08:11 +0200 (lun, 16 ago 2010) | 1 line fix getaddrinfo test failure on OSX caused by AI_CANNAME erroneously used as the value for 'proto' ........
| * Merged revisions 84024 via svnmerge fromGiampaolo Rodolà2010-08-141-0/+54
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84024 | giampaolo.rodola | 2010-08-14 18:45:41 +0200 (sab, 14 ago 2010) | 1 line fix issue #8857: provide a test case for socket.getaddrinfo ........
| * In a number of places code still reversRonald Oussoren2010-05-051-3/+2
| | | | | | | | | | | | | | | | | | to "sys.platform == 'mac'" and that is dead code because it refers to a platform that is no longer supported (and hasn't been supported for several releases). Fixes issue #7908 for the trunk.
| * Issue #7449, last part (11): fix many tests if thread support is disabledVictor Stinner2010-04-271-1/+16
| | | | | | | | | | | | * Use try/except ImportError or test_support.import_module() to import thread and threading modules * Add @unittest.skipUnless(threading, ...) to testcases using threads
| * #7092 - Silence more py3k deprecation warnings, using ↵Florent Xicluna2010-03-211-7/+10
| | | | | | | | test_support.check_py3k_warnings() helper.
| * Issue #8104: socket.recv_into() and socket.recvfrom_into() now supportAntoine Pitrou2010-03-171-4/+40
| | | | | | | | | | writing into objects supporting the new buffer API, for example bytearrays or memoryviews.
| * use assert[Not]In where appropriateEzio Melotti2010-01-231-1/+1
| |
| * Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-8/+4
| | | | | | | | mistake. ( It may come in for sure tough)
| * Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-4/+8
| | | | | | | | Patch by flox
| * Fix testSourceAddress to not test the host, it wasn't passing on some platforms.Gregory P. Smith2010-01-031-9/+4
| |
| * Adds an optional source_address parameter to socket.create_connection().Gregory P. Smith2010-01-031-1/+14
| | | | | | | | For use by issue3972.
| * http://bugs.python.org/issue6971Kristján Valur Jónsson2009-09-251-0/+4
| | | | | | | | Adding the SIO_KEEPALIVE_VALS command to socket.ioctl on windows
| * #6944: the argument to PyArg_ParseTuple should be a tuple, otherwise a ↵Georg Brandl2009-09-191-1/+1
| | | | | | | | SystemError is set. Also clean up another usage of PyArg_ParseTuple.
| * Fix issue1628205: Socket file objects returned by socket.socket.makefile() nowGregory P. Smith2009-08-131-0/+72
| | | | | | | | | | properly handles EINTR within the read, readline, write & flush methods. The socket.sendall() method now properly handles interrupted system calls.
| * convert usage of fail* to assert*Benjamin Peterson2009-06-301-28/+28
| |
| * Issue #1008086: Fixes socket.inet_aton() to always return 4 bytes evenGregory P. Smith2009-02-111-0/+8
| | | | | | | | on LP64 platforms (most 64-bit Linux, bsd, unix systems).
| * - Issue #5104: The socket module now raises OverflowError when 16-bit port andGregory P. Smith2009-01-311-6/+30
| | | | | | | | | | protocol numbers are supplied outside the allowed 0-65536 range on bind() and getservbyport().
| * Comment typoMark Dickinson2009-01-151-1/+1
| |
| * Issue #4397. Fix occasional test_socket failure on OS X.Mark Dickinson2009-01-151-0/+4
| |
| * give the threading API PEP 8 namesBenjamin Peterson2008-06-111-1/+1
| |
| * Fixed the semantic of timeout for socket.create_connection andFacundo Batista2008-05-291-13/+19
| | | | | | | | | | | | all the upper level libraries that use it, including urllib2. Added and fixed some tests, and changed docs correspondingly. Thanks to John J Lee for the patch and the pusing, :)
| * Queue renaming reversal part 3: move module into place andGeorg Brandl2008-05-251-2/+2
| | | | | | | | change imports and other references. Closes #2925.