Christian Heimes
49aed7b782
Issue #28078 : Add missing colon
2016-09-11 20:03:46 +02:00
Christian Heimes
02b3035bc3
Issue #28078 : Silence resource warnings in test_socket. Initial patch by Xiang Zhang, thanks
2016-09-11 19:49:56 +02:00
Christian Heimes
407380f63f
Issue 27744: skip test if AF_ALG socket bind fails
2016-09-06 11:14:09 +02:00
Christian Heimes
04960a21fb
Issue 27744: AES-CBC and DRBG need Kernel 3.19+
2016-09-06 00:58:47 +02:00
Christian Heimes
4837141def
Issue 27744: Check for AF_ALG support in Kernel
2016-09-06 00:37:46 +02:00
Christian Heimes
dffa3949c7
Issue #27744 : Add AF_ALG (Linux Kernel crypto) to socket module.
2016-09-05 23:54:41 +02:00
Martin Panter
02b75abf73
Merge spelling and grammar fixes from 3.5
2016-08-05 01:51:39 +00:00
Martin Panter
69332c1a64
Fix spelling and grammar in documentation and code comments
2016-08-04 13:07:31 +00:00
Berker Peksag
ce4271a3e5
Issue #26536 : Skip test_sio_loopback_fast_path under Windows 7
2016-06-18 16:10:07 +03:00
Steve Dower
ea93ac013d
Issue #26536 : socket.ioctl now supports SIO_LOOPBACK_FAST_PATH. Patch by Daniel Stokes.
2016-06-17 12:52:18 -07:00
Martin Panter
0b7d84de6b
Issue #27171 : Merge typo fixes from 3.5
2016-06-02 10:11:18 +00:00
Martin Panter
e26da7c03a
Issue #27171 : Fix typos in documentation, comments, and test function names
2016-06-02 10:07:09 +00:00
Martin Panter
e514093a2f
Issue #27125 : Merge typo fixes from 3.5
2016-05-30 05:24:49 +00:00
Martin Panter
a90a4a9651
Issue #27125 : Remove duplicated words from documentation and comments
2016-05-30 04:04:50 +00:00
Martin Panter
3e04d5b306
Issue #27076 : Merge spelling from 3.5
2016-05-26 06:03:19 +00:00
Martin Panter
46f50726a0
Issue #27076 : Doc, comment and tests spelling fixes
...
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
2016-05-26 05:35:26 +00:00
Serhiy Storchaka
e437a10d15
Issue #23277 : Remove unused imports in tests.
2016-04-24 21:41:02 +03:00
Martin Panter
50ab1a3694
Issue #26685 : Raise OSError if closing a socket fails
2016-04-11 00:38:12 +00:00
Berker Peksag
31a252b7f3
Issue #16915 : Clarify that mode parameter of socket.makefile() does not accept
...
the same values as open().
2016-02-18 17:34:32 +02:00
Berker Peksag
3fe64d0c5c
Issue #16915 : Clarify that mode parameter of socket.makefile() does not accept
...
the same values as open().
2016-02-18 17:34:00 +02:00
Brett Cannon
3bbad12b5b
Tweak skipping message
2015-12-28 17:21:44 -08:00
Brett Cannon
3c61a448f1
Issue #24725 : Skip the test_socket.testFDPassEmpty on OS X.
...
In OS X 10.11, the test fails consistently due to a platform change
since 10.10. Thanks to Jeff Ramnani for the patch.
2015-12-28 17:17:58 -08:00
Serhiy Storchaka
a84f6c3dd3
Issue #25523 : Merge a-to-an corrections from 3.4.
2015-11-02 14:39:05 +02:00
Serhiy Storchaka
d65c9496da
Issue #25523 : Further a-to-an corrections.
2015-11-02 14:10:23 +02:00
Benjamin Peterson
2775d85d55
merge 3.4 ( #25471 )
2015-10-24 20:07:08 -07:00
Benjamin Peterson
d9dbf49383
accepted sockets shouldn't inherit the SOCK_NONBLOCK flag ( closes #25471 )
2015-10-24 20:06:04 -07:00
Victor Stinner
900db26d34
Merge 3.4 (test_socket, issue #25138 )
2015-09-21 09:04:17 +02:00
Victor Stinner
808d6416e3
Issue #25138 : test_socket.test_idna() uses support.transient_internet() instead
...
of catching socket.EAI_NODATA error which doesn't exist on FreeBSD.
2015-09-21 09:04:01 +02:00
Robert Collins
43cbbe21a7
Issue #22397 : Skip failing tests on AIX
...
Patch from David Edelsohn.
2015-08-03 10:36:04 +12:00
Robert Collins
6f8a0586a9
Issue #22397 : Skip failing tests on AIX
...
Patch from David Edelsohn.
2015-08-03 10:38:39 +12:00
Berker Peksag
dfa4e045a3
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
2015-04-14 09:35:51 +03:00
Berker Peksag
4882cacab6
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
2015-04-14 09:30:01 +03:00
Serhiy Storchaka
8490f5acfe
Issue #23001 : Few functions in modules mmap, ossaudiodev, socket, ssl, and
...
codecs, that accepted only read-only bytes-like object now accept writable
bytes-like object too.
2015-03-20 09:00:36 +02:00
Ethan Furman
24e837f231
issue23673
...
add private method to enum to support replacing global constants with Enum members:
- search for candidate constants via supplied filter
- create new enum class and members
- insert enum class and replace constants with members via supplied module name
- replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle
modify IntEnum classes to use new method
2015-03-18 17:27:57 -07:00
Charles-François Natali
26dd5edae8
Fix whitespace.
2015-02-07 13:29:15 +00:00
Charles-François Natali
6e6c59b508
Issue #23285 : PEP 475 -- Retry system calls failing with EINTR.
2015-02-07 13:27:50 +00:00
Serhiy Storchaka
66fb349d6c
Issue #20736 : testSendmsgDontWait in test_socket no longer skipped on Linux.
...
Patch by David Watson.
2014-11-19 13:21:40 +02:00
Serhiy Storchaka
abde2c1d25
Issue #20736 : testSendmsgDontWait in test_socket no longer skipped on Linux.
...
Patch by David Watson.
2014-11-19 13:21:13 +02:00
Benjamin Peterson
678e11aa22
merge 3.4
2014-11-03 15:12:52 -05:00
Benjamin Peterson
8d2d5b9c59
merge 3.3
2014-11-03 15:12:06 -05:00
Benjamin Peterson
97751fa5c9
merge 3.2
2014-11-03 15:11:53 -05:00
Benjamin Peterson
863c962e68
move idna test domain to pythontest.net
2014-11-03 15:10:47 -05:00
Ethan Furman
41d31967c6
Issue20386: SocketType is again socket.socket; the IntEnum SOCK constants are SocketKind
2014-10-14 18:57:58 -07:00
Ethan Furman
7184bac544
Issue20386: SocketType is again socket.socket; the IntEnum SOCK constants are SocketKind
2014-10-14 18:56:53 -07:00
Charles-François Natali
98c745a773
Issue #18643 : Add socket.socketpair() on Windows.
2014-10-14 21:22:44 +01:00
R David Murray
861470c836
#16518 : Bring error messages in harmony with docs ("bytes-like object")
...
Some time ago we changed the docs to consistently use the term 'bytes-like
object' in all the contexts where bytes, bytearray, memoryview, etc are used.
This patch (by Ezio Melotti) completes that work by changing the error
messages that previously reported that certain types did "not support the
buffer interface" to instead say that a bytes-like object is required. (The
glossary entry for bytes-like object references the discussion of the buffer
protocol in the docs.)
2014-10-05 11:47:01 -04:00
Victor Stinner
011428e168
(Merge 3.4) Fix repr(_socket.socket) on Windows 64-bit: don't fail with
...
OverflowError on closed socket. repr(socket.socket) already works fine.
2014-07-26 14:37:57 +02:00
Victor Stinner
e254e53c83
Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
...
on closed socket. repr(socket.socket) already works fine.
2014-07-26 14:36:55 +02:00
Charles-François Natali
ab9a446f23
Issue #19875 : Fix random test_getsockaddrarg() failure.
2014-07-25 18:45:28 +01:00
Charles-François Natali
65708cf510
Issue #19875 : Fix random test_getsockaddrarg() failure.
2014-07-25 18:44:30 +01:00
Charles-François Natali
6e20460dc6
Issue #21566 : Make use of socket.listen() default backlog.
2014-07-23 19:28:13 +01:00
Terry Jan Reedy
cd41e89377
Merge with 3.4
2014-06-13 15:21:01 -04:00
Terry Jan Reedy
a40e6b0c94
Issue #21730 : Add no-thread skip in test_socket. Patch by Berker Peksag.
2014-06-13 15:20:45 -04:00
Ethan Furman
482fe0477e
issue23673
...
add private method to enum to support replacing global constants with Enum members:
- search for candidate constants via supplied filter
- create new enum class and members
- insert enum class and replace constants with members via supplied module name
- replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle
modify IntEnum classes to use new method
2015-03-18 18:19:30 -07:00
Giampaolo Rodola'
915d14190e
fix issue #17552 : add socket.sendfile() method allowing to send a file over a socket by using high-performance os.sendfile() on UNIX. Patch by Giampaolo Rodola'·
2014-06-11 03:54:30 +02:00
Charles-François Natali
644b8f52a8
Issue #21455 : Add a default backlog to socket.listen().
2014-05-22 19:45:39 +01:00
doko@ubuntu.com
4a173bc4ed
Fixes for KFreeBSD and the Hurd:
...
- Issue #21274 : Define PATH_MAX for GNU/Hurd in Python/pythonrun.c.
- Issue #21276 : posixmodule: Don't define USE_XATTRS on KFreeBSD and the Hurd.
- Issue #21275 : Fix a socket test on KFreeBSD.
2014-04-17 19:47:16 +02:00
Ned Deily
b7bb675d3c
Issue #20605 : Make test_socket getaddrinfo OS X segfault test more robust.
2014-02-13 22:53:42 -08:00
Ned Deily
b24f481ab4
Issue #20605 : Make test_socket getaddrinfo OS X segfault test more robust.
2014-02-13 22:50:42 -08:00
Serhiy Storchaka
f28ba369dd
Issue #20532 : Tests which use _testcapi now are marked as CPython only.
2014-02-07 10:10:55 +02:00
Serhiy Storchaka
5cfc79deae
Issue #20532 : Tests which use _testcapi now are marked as CPython only.
2014-02-07 10:06:39 +02:00
Ned Deily
cb306d1b59
Issue #20474 : Fix "unexpected success" test_socket failures on OS X 10.7+.
2014-02-03 14:02:26 -08:00
Ned Deily
c564038580
Issue #20474 : Fix "unexpected success" test_socket failures on OS X 10.7+.
2014-02-03 13:58:31 -08:00
Stefan Krah
b772f2e89d
Issue #20246 : Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.
2014-01-21 22:59:57 +01:00
Stefan Krah
6b2e5597e1
Issue #20246 : Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.
2014-01-21 22:58:40 +01:00
Serhiy Storchaka
8f8ec92de8
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang lines in the unittestgui and checkpip scripts.
2014-01-16 17:33:23 +02:00
Serhiy Storchaka
b992a0e102
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang line to use python3 executable in the unittestgui script.
2014-01-16 17:15:49 +02:00
Benjamin Peterson
60ea92883f
merge 3.3
2014-01-14 00:29:03 -05:00
Benjamin Peterson
bd1d12e61b
add test for #20251
2014-01-14 00:27:42 -05:00
Benjamin Peterson
c6b37e21f5
merge 3.3 ( #20246 )
2014-01-13 23:14:42 -05:00
Benjamin Peterson
5688222907
merge 3.2 ( #20246 )
2014-01-13 23:12:55 -05:00
Benjamin Peterson
fbf648ebba
complain when nbytes > buflen to fix possible buffer overflow ( closes #20246 )
2014-01-13 22:59:38 -05:00
Zachary Ware
101d9e7250
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:44:27 -06:00
Zachary Ware
9fe6d86709
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:20:35 -06:00
Nick Coghlan
ca351e6bc5
Fix test_socket for repr update
2013-11-13 22:10:16 +10:00
Jason R. Coombs
6bdc498734
Normalize whitespace
2013-11-10 14:02:04 -05:00
Serhiy Storchaka
7908068627
Issue #18702 : All skipped tests now reported as skipped.
2013-11-03 21:31:18 +02:00
Charles-François Natali
5fd2642adb
Issue #18643 : Fix some test_socket failures due to large default socket buffer
...
sizes.
2013-08-29 19:01:40 +02:00
Victor Stinner
71fe8c00f6
test_socket: cancel scheduled alarm on test failure
2013-08-24 15:52:47 +02:00
Charles-Francois Natali
dd225e4c64
Issue #17684 : Fix some test_socket failures due to limited FD passing support
...
on OS-X. Patch by Jeff Ramnani.
2013-05-20 19:08:19 +02:00
Charles-François Natali
37114bb548
Issue #18308 : don't take the scope ID into account when comparing IPv6
...
addresses.
2013-07-09 19:15:43 +02:00
Ronald Oussoren
a822d36675
Ensure that the fix for #17269 also works on OSX 10.4
...
AI_NUMERICSERV isn't defined on OSX 10.4.
2013-06-10 10:36:28 +02:00
Ronald Oussoren
27a4ac535f
Issue #17269 : Workaround for a platform bug in getaddrinfo on OSX
...
Without this patch socket.getaddrinfo crashed when called
with some unusual argument combinations.
2013-05-24 13:47:37 +02:00
Terry Jan Reedy
98472b8396
Merge 3.2, issue #17047 : remove doubled words found in 2.7 to
...
3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:58:27 -04:00
Terry Jan Reedy
c30b7b16ea
Issue #17047 : remove doubled words found in 2.7 to 3.4 Lib/*,
...
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:57:08 -04:00
Serhiy Storchaka
9101e23ff6
Issue #15989 : Fix several occurrences of integer overflow
...
when result of PyLong_AsLong() narrowed to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:41:45 +02:00
Serhiy Storchaka
441d30fac7
Issue #15989 : Fix several occurrences of integer overflow
...
when result of PyLong_AsLong() narrowed to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:26:26 +02:00
Antoine Pitrou
d5a070f586
Silence sporadic failure in RecvmsgIntoSCTPStreamTest.testRecvmsgEOF (issue #13876 ) - probably not Python-related.
2012-12-18 23:44:36 +01:00
Antoine Pitrou
92f8b0016e
Silence sporadic failure in RecvmsgSCTPStreamTest.testRecvmsgEOF (issue #13876 ) - probably not Python-related.
2012-12-16 16:40:04 +01:00
Trent Nelson
016884cbaa
Issue #16257 : make test_create_connection() handle ENETUNREACH.
2012-10-17 06:15:40 -04:00
Trent Nelson
45bb613e25
Issue #16257 : make test_create_connection() handle ENETUNREACH.
2012-10-17 06:15:15 -04:00
Antoine Pitrou
9b1c84b586
Issue #15842 : the SocketIO.{readable,writable,seekable} methods now raise ValueError when the file-like object is closed.
...
Patch by Alessandro Moura.
2012-09-14 17:30:31 +02:00
Antoine Pitrou
1e7ee9dfa0
Issue #15842 : the SocketIO.{readable,writable,seekable} methods now raise ValueError when the file-like object is closed.
...
Patch by Alessandro Moura.
2012-09-14 17:28:10 +02:00
Atsuo Ishimoto
da0fc14d46
Issue #7171 : Add Windows implementation of ``inet_ntop`` and ``inet_pton`` to socket module.
2012-07-16 15:16:54 +09:00
Serhiy Storchaka
43767638a9
Issue #18702 : All skipped tests now reported as skipped.
2013-11-03 21:31:38 +02:00
Charles-François Natali
0cc86850b6
Issue #16201 : socket: Use inet_pton()/inet_addr() instead of ad-hoc parsing for
...
numeric IP addresses.
2013-09-13 19:53:08 +02:00
Victor Stinner
4f7a36f84f
Issue #18904 : test_os and test_socket use unittest.skipIf() to check if fcntl
...
module is present (to record skipped tests)
2013-09-08 14:14:38 +02:00
Victor Stinner
a3c18d0f14
Issue #18904 : test_socket: add inheritance tests using fcntl and FD_CLOEXEC
2013-09-08 11:53:09 +02:00
Eli Bendersky
b2ff3cf0e9
Switch the AF_* and SOCK_* constants in the socket module to IntEnum.
...
Closes #18720 .
2013-08-31 15:13:30 -07:00
Charles-François Natali
fcfb324e81
Use the recent support.HOSTv6 addition.
2013-08-31 14:40:49 +02:00