summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix tests in test_socket to use correctly CMSG_LEN (GH-9594)Miss Islington (bot)2018-09-271-2/+3
| | | | | | | | | | | | | | | | After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots regarding tests in test_socket that are using testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed out to be the reason the test started to fail. A close examination of the manpage for cmsg_space(3) reveals that the number of file descriptors needs to be taken into account when using CMSG_LEN(). This commit fixes tests in test_socket to use correctly CMSG_LEN, taking into account the number of FDs. (cherry picked from commit 7291108d88ea31d205da4db19d202d6cbffc6d93) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-33937: Catch ENOMEM error in test_socket (GH-9557)Miss Islington (bot)2018-09-251-2/+13
| | | | | | | | Fix test_socket.SendmsgSCTPStreamTest: catch ENOMEM error. testSendmsgTimeout() and testSendmsgDontWait() randomly fail on Travis CI with: "OSError: [Errno 12] Cannot allocate memory". (cherry picked from commit 46f40be8b907854deb81c6132b7cb038e9e5202a) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-34587, test_socket: remove RDSTest.testCongestion() (GH-9277)Miss Islington (bot)2018-09-171-27/+0
| | | | | | | | | | | | The test tries to fill the receiver's socket buffer and expects an error. But the RDS protocol doesn't require that. Moreover, the Linux implementation of RDS expects that the producer of the messages reduces its rate, it's not the role of the receiver to trigger an error. The test fails on Fedora 28 by design, so remove it. (cherry picked from commit 7484bdfd1e2e33fdd2c44dd4ffa044aacd495337) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)Miss Islington (bot)2018-07-091-1/+1
| | | | | | Fixed also testing the "always" warning filter. (cherry picked from commit b796e7dcdc24ff7ec53044af041254c83a8ace21) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* [3.6] bpo-31234: Add test.support.wait_threads_exit() (GH-3578) (GH-7315)Victor Stinner2018-06-011-0/+4
| | | | | | | | | | | | | | | | | | | * bpo-31234: Add test.support.wait_threads_exit() (GH-3578) Use _thread.count() to wait until threads exit. The new context manager prevents the "dangling thread" warning. (cherry picked from commit ff40ecda73178dfcad24e26240d684356ef20793) * bpo-31234: Try to fix lock_tests warning (#3557) Try to fix the "Warning -- threading_cleanup() failed to cleanup 1 threads" warning in test.lock_tests: wait a little bit longer to give time to the threads to complete. Warning seen on test_thread and test_importlib. (cherry picked from commit 096ae3373abac2c8b3a26a3fe33cc8bd4cbccd4e)
* bpo-31479: Always reset the signal alarm in tests (GH-3588) (GH-7312)Victor Stinner2018-06-011-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 (cherry picked from commit 9abee722d448c1c00c7d4e11ce242ec7b13e5c49)
* [3.6] Spelling fixes to docs, docstrings, and comments (GH-6374) (#6558)Terry Jan Reedy2018-04-211-1/+1
| | | (cherry picked from commit 61f82e0e337f971da57f8f513abfe693edf95aa5)
* [3.6] bpo-32394: Remove some TCP options on older version Windows. (GH-5585)animalize2018-02-261-0/+19
|
* [3.6] bpo-32297: Fix misspellings in Python source code comments (GH-4803) ↵Andrew Svetlov2017-12-141-2/+2
| | | | | | | | | | | | | | (#4864) * [3.6] bpo-32297: Few misspellings found in Python source code comments. (GH-4803) * Fix multiple typos in code comments * Add spacing in comments (test_logging.py, test_math.py) * Fix spaces at the beginning of comments in test_logging.py. (cherry picked from commit 53f7a7c2814fbfd8a29200926601a32fa48bacb3)
* Skip test_socket.test_sha256() on linux < 4.5 (GH-4643) (#4645)Miss Islington (bot)2017-11-301-0/+3
| | | | bpo-31705. (cherry picked from commit 86afc1f2a7fb3afe00779c6426bc141bc795d9a3)
* Fix test_socket.test_create_connection() (GH-4206) (#4208)Miss Islington (bot)2017-11-011-0/+4
| | | | | bpo-31910: test_create_connection() now catchs also EADDRNOTAVAIL to fix the test on Travis CI. (cherry picked from commit 280c22a82a6756e9caffef031c564fd98f1b50e7)
* Backport bpo-30205 to 3.6 (#1403)Antoine Pitrou2017-05-021-0/+4
|
* bpo-29845: Mark tests that use _testcapi as CPython-only (#711) (#725)Serhiy Storchaka2017-03-191-0/+1
| | | (cherry picked from commit 24c738a9e91b8f46da6166663d8ce7ec18cec784)
* update test_socket AEAD test for kernel 4.9 and up (GH-133) (GH-548)Mariatta2017-03-171-8/+7
| | | (cherry picked from commit 9764c151c51480a7ca6042b1ccd69be2620ff360)
* bpo-28728: clarify possible test failure due to ISP (GH-412) (GH-531)Xiang Zhang2017-03-071-5/+15
|
* 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.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: Fix the tests that bind() a unix socket and raise PermissionErrorXavier de Gaye2016-12-141-6/+15
| | | | | | | | on Android for a non-root user.
* | Merge 3.5Xavier de Gaye2016-11-131-1/+2
|\ \ | |/
| * Fix temporary file not deleted in test_socketXavier de Gaye2016-11-131-1/+2
| |
* | Issue #28471: Avoid ResourceWarning by detaching test socketMartin Panter2016-10-201-0/+1
| |
* | Issue #28471: Fix crash (GIL state related) in socket.setblockingYury Selivanov2016-10-181-0/+12
| |
* | 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ä.
* | Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-1/+0
| |
* | Issue #26685: Raise OSError if closing a socket failsMartin Panter2016-04-111-0/+11
| |
* | Issue #16915: Clarify that mode parameter of socket.makefile() does not acceptBerker Peksag2016-02-181-0/+14
|\ \ | |/ | | | | the same values as open().
| * Issue #16915: Clarify that mode parameter of socket.makefile() does not acceptBerker Peksag2016-02-181-0/+14
| | | | | | | | the same values as open().
* | Tweak skipping messageBrett Cannon2015-12-291-1/+1
| |