summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31479: Always reset the signal alarm in tests (#3588)Victor Stinner2017-09-191-9/+14
| | | | | | | | | | | | | * bpo-31479: Always reset the signal alarm in tests Use "try: ... finally: signal.signal(0)" pattern to make sure that tests don't "leak" a pending fatal signal alarm. * Move two more alarm() calls into the try block Fix also typo: replace signal.signal(0) with signal.alarm(0) * Move another signal.alarm() into the try block
* bpo-31234: Add test.support.wait_threads_exit() (#3578)Victor Stinner2017-09-141-0/+4
| | | | Use _thread.count() to wait until threads exit. The new context manager prevents the "dangling thread" warning.
* bpo-29639: change test.support.HOST to "localhost"Gregory P. Smith2017-09-091-2/+2
| | | | | | | | | | test.support.HOST should be "localhost" as it was in the past. See the bpo-29639. Tests that need the IP address should use HOSTv4 (added) or the existing HOSTv6 constant. This changes the definition and fixes tests that needed updating to deal with HOST being the hostname rather than the hardcoded IP address. This is only the first step in addressing https://bugs.python.org/issue29639.
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-51/+18
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-27584: New addition of vSockets to the python socket module (#2489)caavery2017-09-061-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-27584: New addition of vSockets to the python socket module Support for AF_VSOCK on Linux only * bpo-27584: Fixes for V2 Fixed syntax and naming problems. Fixed #ifdef AF_VSOCK checking Restored original aclocal.m4 * bpo-27584: Fixes for V3 Added checking for fcntl and thread modules. * bpo-27584: Fixes for V4 Fixed white space error * bpo-27584: Fixes for V5 Added back comma in (CID, port). * bpo-27584: Fixes for V6 Added news file. socket.rst now reflects first Linux introduction of AF_VSOCK. Fixed get_cid in test_socket.py. Replaced PyLong_FromLong with PyLong_FromUnsignedLong in socketmodule.c Got rid of extra AF_VSOCK #define. Added sockaddr_vm to sock_addr. * bpo-27584: Fixes for V7 Minor cleanup. * bpo-27584: Fixes for V8 Put back #undef AF_VSOCK as it is necessary when vm_sockets.h is not installed.
* bpo-30987 - Support for ISO-TP protocol in SocketCAN (#2956)Pier-Yves Lessard2017-08-281-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added support for CAN_ISOTP protocol * Added unit tests for CAN ISOTP * Updated documentation for ISO-TP protocol * Removed trailing whitespace in documentation * Added blurb NEWS.d file * updated Misc/ACKS * Fixed broken unit test that was using isotp const outside of skippable section * Removed dependecy over third party project * Added implementation for getsockname + unit tests * Missing newline at end of ACKS file * Accidentally inserted a type in ACKS file * Followed tiran changes review #1 recommendations * Added spaces after comma
* Fix tests: getsockname() can return None on OS X on unbound sockets (#1400)Antoine Pitrou2017-05-021-2/+2
|
* bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux (#1370)Antoine Pitrou2017-05-021-0/+4
| | | | | | * bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux * Add NEWS entry
* bpo-29972: Skip tests known to fail on AIX (#979)Victor Stinner2017-04-041-3/+7
| | | | | | | | | | | | | | | | | | | | | | * bpo-29972: Fix test_eintr on AIX On AIX, sigtimedwait(0.2) sleeps 199.8 ms, whereas the test expects 200 ms or longer. * bpo-29972: Skip some inet_pton() tests on AIX Skip some inet_pton() tests of test_socket on AIX. inet_pton() on AIX is less strict than on Linux and doesn't reject some invalid IP addresses. The unit tests test more the libc than Python itself. * bpo-29972: Skip tests known to fail on AIX * test_locale.test_strcoll_with_diacritic() * test_locale.test_strxfrm_with_diacritic() * test_strptime.test_week_of_year_and_day_of_week_calculation() * test_tools.test_POT_Creation_Date()
* bpo-29845: Mark tests that use _testcapi as CPython-only (#711)Serhiy Storchaka2017-03-191-0/+1
|
* bpo-28728: clarify possible test failure due to ISP (GH-412)Xiang Zhang2017-03-071-5/+15
|
* update test_socket AEAD test for kernel 4.9 and up (#133)matejcik2017-02-161-8/+7
|
* Issue #28815: Merge test tweak from 3.6Martin Panter2017-01-081-7/+3
|\
| * Issue #28815: Merge test tweak from 3.5Martin Panter2017-01-081-7/+3
| |\
| | * Issue #28815: Use new exception subclassesMartin Panter2017-01-081-7/+3
| | |
* | | Issue #28815: Merge test_socket fix from 3.6Martin Panter2016-12-241-3/+11
|\ \ \ | |/ /
| * | Issue #28815: Merge test_socket fix from 3.5Martin Panter2016-12-241-3/+11
| |\ \ | | |/
| | * Issue #28815: Skip TIPC tests if /proc/modules is not readableMartin Panter2016-12-241-3/+11
| | | | | | | | | | | | Based on patch by Patrila.
* | | Issue #28683: Merge 3.6.Xavier de Gaye2016-12-141-6/+15
|\ \ \ | |/ /
| * | Issue #28683: Fix the tests that bind() a unix socket and raise PermissionErrorXavier de Gaye2016-12-141-6/+15
| | | | | | | | | | | | on Android for a non-root user.
* | | Issue #26936: Fix the test_socket failures on Android - getservbyname(),Xavier de Gaye2016-12-131-4/+12
| | | | | | | | | | | | getservbyport() and getaddrinfo() are broken on some Android API levels.
* | | Merge 3.6Xavier de Gaye2016-11-131-1/+2
|\ \ \ | |/ /
| * | Merge 3.5Xavier de Gaye2016-11-131-1/+2
| |\ \ | | |/
| | * Fix temporary file not deleted in test_socketXavier de Gaye2016-11-131-1/+2
| | |
* | | Merge test suite fixes from 3.6Martin Panter2016-10-201-0/+1
|\ \ \ | |/ /
| * | Issue #28471: Avoid ResourceWarning by detaching test socketMartin Panter2016-10-201-0/+1
| | |
* | | Merge 3.6 (issue #28471)Yury Selivanov2016-10-181-0/+12
|\ \ \ | |/ /
| * | Issue #28471: Fix crash (GIL state related) in socket.setblockingYury Selivanov2016-10-181-0/+12
| | |
* | | Issue #28332: Deprecated silent truncations in socket.htons and socket.ntohs.Serhiy Storchaka2016-10-021-8/+18
|/ / | | | | | | Original patch by Oren Milman.
* | Issue #20254: Merge from 3.5Berker Peksag2016-10-021-2/+4
|\ \ | |/
| * Issue #20254: Fix duplicate tests in test_socketBerker Peksag2016-10-021-2/+4
| | | | | | | | Patch by Vajrasky Kok.
* | Issue #26384: Merge from 3.5Berker Peksag2016-09-171-0/+19
|\ \ | |/
| * Issue #26384: Fix UnboundLocalError in socket._sendfile_use_sendfileBerker Peksag2016-09-171-0/+19
| |
* | Issue 27744: test_aes_cbc is blocking x86-64 Ubuntu 15.10 Skylake CPU 3.x ↵Christian Heimes2016-09-111-3/+5
| | | | | | | | for a while. Require Kernel 4.3+ for now
* | Issue #28078: Add missing colonChristian Heimes2016-09-111-1/+1
| |
* | Issue #28078: Silence resource warnings in test_socket. Initial patch by ↵Christian Heimes2016-09-111-11/+15
| | | | | | | | Xiang Zhang, thanks
* | Issue 27744: skip test if AF_ALG socket bind failsChristian Heimes2016-09-061-1/+5
| |
* | Issue 27744: AES-CBC and DRBG need Kernel 3.19+Christian Heimes2016-09-051-0/+2
| |
* | Issue 27744: Check for AF_ALG support in KernelChristian Heimes2016-09-051-1/+14
| |
* | Issue #27744: Add AF_ALG (Linux Kernel crypto) to socket module.Christian Heimes2016-09-051-0/+165
| |
* | Merge spelling and grammar fixes from 3.5Martin Panter2016-08-051-1/+1
|\ \ | |/
| * Fix spelling and grammar in documentation and code commentsMartin Panter2016-08-041-1/+1
| |
* | Issue #26536: Skip test_sio_loopback_fast_path under Windows 7Berker Peksag2016-06-181-2/+8
| |
* | Issue #26536: socket.ioctl now supports SIO_LOOPBACK_FAST_PATH. Patch by ↵Steve Dower2016-06-171-0/+10
| | | | | | | | Daniel Stokes.
* | Issue #27171: Merge typo fixes from 3.5Martin Panter2016-06-021-1/+1
|\ \ | |/
| * Issue #27171: Fix typos in documentation, comments, and test function namesMartin Panter2016-06-021-1/+1
| |
* | Issue #27125: Merge typo fixes from 3.5Martin Panter2016-05-301-1/+1
|\ \ | |/
| * Issue #27125: Remove duplicated words from documentation and commentsMartin Panter2016-05-301-1/+1
| |
* | Issue #27076: Merge spelling from 3.5Martin Panter2016-05-261-2/+2
|\ \ | |/
| * Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-261-2/+2
| | | | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.