Berker Peksag
4882cacab6
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
11 years ago
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.
11 years ago
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
11 years ago
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
11 years ago
Charles-François Natali
26dd5edae8
Fix whitespace.
11 years ago
Charles-François Natali
6e6c59b508
Issue #23285 : PEP 475 -- Retry system calls failing with EINTR.
11 years ago
Serhiy Storchaka
abde2c1d25
Issue #20736 : testSendmsgDontWait in test_socket no longer skipped on Linux.
Patch by David Watson.
11 years ago
Benjamin Peterson
863c962e68
move idna test domain to pythontest.net
12 years ago
Ethan Furman
7184bac544
Issue20386: SocketType is again socket.socket; the IntEnum SOCK constants are SocketKind
12 years ago
Charles-François Natali
98c745a773
Issue #18643 : Add socket.socketpair() on Windows.
12 years ago
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.)
12 years ago
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.
12 years ago
Charles-François Natali
65708cf510
Issue #19875 : Fix random test_getsockaddrarg() failure.
12 years ago
Charles-François Natali
6e20460dc6
Issue #21566 : Make use of socket.listen() default backlog.
12 years ago
Terry Jan Reedy
a40e6b0c94
Issue #21730 : Add no-thread skip in test_socket. Patch by Berker Peksag.
12 years ago
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'·
12 years ago
Charles-François Natali
644b8f52a8
Issue #21455 : Add a default backlog to socket.listen().
12 years ago
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.
12 years ago
Ned Deily
b24f481ab4
Issue #20605 : Make test_socket getaddrinfo OS X segfault test more robust.
12 years ago
Serhiy Storchaka
5cfc79deae
Issue #20532 : Tests which use _testcapi now are marked as CPython only.
12 years ago
Ned Deily
c564038580
Issue #20474 : Fix "unexpected success" test_socket failures on OS X 10.7+.
12 years ago
Stefan Krah
d9bed99fcb
Issue #20246 : Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.
12 years ago
Stefan Krah
6b2e5597e1
Issue #20246 : Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.
12 years ago
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.
12 years ago
Benjamin Peterson
bd1d12e61b
add test for #20251
12 years ago
Benjamin Peterson
c6b37e21f5
merge 3.3 ( #20246 )
12 years ago
Benjamin Peterson
fbf648ebba
complain when nbytes > buflen to fix possible buffer overflow ( closes #20246 )
12 years ago
Zachary Ware
9fe6d86709
Issue 19572: More silently skipped tests explicitly skipped.
12 years ago
Nick Coghlan
ca351e6bc5
Fix test_socket for repr update
13 years ago
Jason R. Coombs
6bdc498734
Normalize whitespace
13 years ago
Serhiy Storchaka
43767638a9
Issue #18702 : All skipped tests now reported as skipped.
13 years ago
Serhiy Storchaka
7908068627
Issue #18702 : All skipped tests now reported as skipped.
13 years ago
Charles-François Natali
0cc86850b6
Issue #16201 : socket: Use inet_pton()/inet_addr() instead of ad-hoc parsing for
numeric IP addresses.
13 years ago
Victor Stinner
4f7a36f84f
Issue #18904 : test_os and test_socket use unittest.skipIf() to check if fcntl
module is present (to record skipped tests)
13 years ago
Victor Stinner
a3c18d0f14
Issue #18904 : test_socket: add inheritance tests using fcntl and FD_CLOEXEC
13 years ago
Eli Bendersky
b2ff3cf0e9
Switch the AF_* and SOCK_* constants in the socket module to IntEnum.
Closes #18720 .
13 years ago
Charles-François Natali
fcfb324e81
Use the recent support.HOSTv6 addition.
13 years ago
Charles-François Natali
5fd2642adb
Issue #18643 : Fix some test_socket failures due to large default socket buffer
sizes.
13 years ago
Victor Stinner
d39dca9e33
Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong
13 years ago
Victor Stinner
daf455554b
Issue #18571 : Implementation of the PEP 446: file descriptors and file handles
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
13 years ago
Victor Stinner
71fe8c00f6
test_socket: cancel scheduled alarm on test failure
13 years ago
Charles-François Natali
37114bb548
Issue #18308 : don't take the scope ID into account when comparing IPv6
addresses.
13 years ago
Ronald Oussoren
a822d36675
Ensure that the fix for #17269 also works on OSX 10.4
AI_NUMERICSERV isn't defined on OSX 10.4.
13 years ago
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.
13 years ago
Charles-Francois Natali
dd225e4c64
Issue #17684 : Fix some test_socket failures due to limited FD passing support
on OS-X. Patch by Jeff Ramnani.
13 years ago
Charles-François Natali
b10c71daa2
Backed out changeset c0f2b038fc12
13 years ago
Charles-François Natali
c7c333d25d
Issue #17683 : socket module: return AF_UNIX addresses in Linux abstract
namespace as string.
13 years ago
Charles-Francois Natali
d66b10e165
Issue #17684 : Fix some test_socket failures due to limited FD passing support
on OS-X. Patch by Jeff Ramnani.
13 years ago
Giampaolo Rodola'
7ca4936113
attempt to fix bb failure as per http://bugs.python.org/issue17675#msg186595
13 years ago
Giampaolo Rodola'
50331cbf08
Fix issue #17675 : make socket repr() provide local and remote addresses (if any).
13 years ago