Raymond Hettinger
bb6c0aaebf
PEP 479: Use the return-keyword instead of raising StopIteration inside a generators.
2014-11-22 22:14:41 -08:00
Zachary Ware
513112b229
Issue #22834 : cwd can't not exist on Windows, skip the test
2014-11-22 17:03:46 -06:00
Brett Cannon
b6e2556d8f
Issue #22834 : Have import suppress FileNotFoundError when the current
...
working directory no longer exists.
Thanks to Martin Panter for the bug report.
2014-11-21 12:19:28 -05:00
Antoine Pitrou
b1e36073cd
Issue #22796 : HTTP cookie parsing is now stricter, in order to protect against potential injection attacks.
2014-11-21 01:20:57 +01:00
Victor Stinner
bca6ae67d6
Merge 3.4 (asyncio)
2014-11-20 15:04:31 +01:00
Victor Stinner
2d99d93d11
asyncio: Coroutine objects are now rejected with a TypeError by the following
...
functions:
* add_signal_handler()
* call_at()
* call_later()
* call_soon()
* call_soon_threadsafe()
* run_in_executor()
Fix also the error message of add_signal_handler() (fix the name of the
function).
2014-11-20 15:03:52 +01:00
Victor Stinner
8beadd3d96
Merge with 3.4 (asyncio)
2014-11-20 14:19:49 +01:00
Victor Stinner
c1ad35aae8
asyncio, test_events: Ignore the "SSL handshake failed" log in debug mode
2014-11-20 14:19:23 +01:00
Victor Stinner
662fd5f68e
asyncio: Fix formatting of the "Future exception was never retrieved" in
...
release mode
2014-11-20 14:16:31 +01: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
Raymond Hettinger
a34cd0c781
Issue #22824 : Simplify reprlib output format for empty arrays
2014-11-15 10:58:58 -08:00
Serhiy Storchaka
42826566f5
Issue #22193 : Fixed integer overflow error in sys.getsizeof().
...
Fixed an error in _PySys_GetSizeOf declaration.
2014-11-15 13:22:27 +02:00
Serhiy Storchaka
030e92d1a5
Issue #22193 : Fixed integer overflow error in sys.getsizeof().
...
Fixed an error in _PySys_GetSizeOf declaration.
2014-11-15 13:21:37 +02:00
Guido van Rossum
59f0682190
- Issue #22841 : Reject coroutines in asyncio add_signal_handler().
...
Patch by Ludovic.Gasc.
2014-11-14 11:48:37 -08:00
Guido van Rossum
e36fcde383
- Issue #22841 : Reject coroutines in asyncio add_signal_handler().
...
Patch by Ludovic.Gasc.
2014-11-14 11:45:47 -08:00
Benjamin Peterson
6fd113c26c
add space
2014-11-12 10:23:44 -05:00
Benjamin Peterson
994c7f76a3
merge 3.4 ( #22849 )
2014-11-12 10:23:35 -05:00
Benjamin Peterson
6c14f23100
fix possible double free in TextIOWrapper.__init__ ( closes #22849 )
2014-11-12 10:19:46 -05:00
Nick Coghlan
c216c48699
Close #19494 : add urrlib.request.HTTPBasicPriorAuthHandler
...
This auth handler adds the Authorization header to the first
HTTP request rather than waiting for a HTTP 401 Unauthorized
response from the server as the default HTTPBasicAuthHandler
does.
This allows working with websites like https://api.github.com which do
not follow the strict interpretation of RFC, but more the dicta in the
end of section 2 of RFC 2617:
> A client MAY preemptively send the corresponding Authorization
> header with requests for resources in that space without receipt
> of another challenge from the server. Similarly, when a client
> sends a request to a proxy, it may reuse a userid and password in
> the Proxy-Authorization header field without receiving another
> challenge from the proxy server. See section 4 for security
> considerations associated with Basic authentication.
Patch by Matej Cepl.
2014-11-12 23:33:50 +10:00
Serhiy Storchaka
ab14088141
Minor code clean up and improvements in the re module.
2014-11-11 21:13:28 +02:00
Serhiy Storchaka
b99c132bd9
Fixed AttributeError when the regular expression starts from illegal escape.
2014-11-10 14:38:16 +02:00
Serhiy Storchaka
ad446d57a9
Issue #22578 : Added attributes to the re.error class.
2014-11-10 13:49:00 +02:00
Serhiy Storchaka
5619ab926b
Issue #12728 : Different Unicode characters having the same uppercase but
...
different lowercase are now matched in case-insensitive regular expressions.
2014-11-10 12:43:14 +02:00
Serhiy Storchaka
0c938f6d24
Issue #12728 : Different Unicode characters having the same uppercase but
...
different lowercase are now matched in case-insensitive regular expressions.
2014-11-10 12:37:16 +02:00
Serhiy Storchaka
5f33677219
Merge heads
2014-11-10 10:21:03 +02:00
Berker Peksag
39e4c4d873
Issue #21650 : Add an `--sort-keys` option to json.tool CLI.
2014-11-10 09:56:54 +02:00
Raymond Hettinger
ffd842e1d6
Issue #22824 : Updated reprlib output format for sets to use set literals.
2014-11-09 22:30:36 -08:00
Serhiy Storchaka
c7f7d3897e
Issue #22434 : Constants in sre_constants are now named constants (enum-like).
2014-11-09 20:48:36 +02:00
Serhiy Storchaka
479c1176bf
Silence the failure of test_pyclbr after adding a property in sre_parse
...
(issue #814253 ).
2014-11-07 22:33:19 +02:00
Serhiy Storchaka
3402ef6c8d
Silence the failure of test_pyclbr after adding a property in sre_parse
...
(issue #814253 ).
2014-11-07 22:32:37 +02:00
Serhiy Storchaka
6276b32799
Issues #814253 , #9179 : Group references and conditional group references now
...
work in lookbehind assertions in regular expressions.
2014-11-07 21:45:17 +02:00
Serhiy Storchaka
84df7fe6a2
Issues #814253 , #9179 : Group references and conditional group references now
...
work in lookbehind assertions in regular expressions.
2014-11-07 21:43:57 +02:00
Serhiy Storchaka
85e7066278
Issue #22406 : Fixed the uu_codec codec incorrectly ported to 3.x.
...
Based on patch by Martin Panter.
2014-11-07 14:06:19 +02:00
Serhiy Storchaka
519114df42
Issue #22406 : Fixed the uu_codec codec incorrectly ported to 3.x.
...
Based on patch by Martin Panter.
2014-11-07 14:04:37 +02:00
Serhiy Storchaka
57b967791a
Issue #17293 : uuid.getnode() now determines MAC address on AIX using netstat.
...
Based on patch by Aivars Kalvāns.
2014-11-07 12:23:30 +02:00
Serhiy Storchaka
e66bb96929
Issue #17293 : uuid.getnode() now determines MAC address on AIX using netstat.
...
Based on patch by Aivars Kalvāns.
2014-11-07 12:19:40 +02:00
Georg Brandl
9f2e0d6a86
merge with 3.4
2014-11-06 15:33:35 +01:00
Georg Brandl
72a7f7c476
Try to transfer the Unicode test data files gzipped.
2014-11-06 15:33:30 +01:00
Georg Brandl
2f5f2908d2
merge with 3.4
2014-11-06 14:38:23 +01:00
Georg Brandl
5a15508f97
#22650 : test suite: load Unicode test data files from www.pythontest.net
2014-11-06 14:37:49 +01:00
Georg Brandl
dca213dd77
merge with 3.4
2014-11-05 22:17:29 +01:00
Antoine Pitrou
f25358265a
Closes #22784 : fix test_asyncio when the ssl module isn't available
2014-11-05 20:48:40 +01:00
Antoine Pitrou
50219fcd23
Closes #22784 : fix test_asyncio when the ssl module isn't available
2014-11-05 20:48:16 +01:00
Georg Brandl
fbaf931096
test_httplib: use self-signed.pythontest.net for verification test with non-root-CA cert
2014-11-05 20:37:40 +01:00
Benjamin Peterson
81d9feee8d
merge 3.4
2014-11-05 13:10:16 -05:00
Benjamin Peterson
b811a97859
use pythontest.net for fragment redirection test
2014-11-05 13:10:08 -05:00
Benjamin Peterson
141579c886
merge 3.4
2014-11-05 11:31:02 -05:00
Benjamin Peterson
1d83002748
remove requires_ssl decorator
2014-11-05 11:30:21 -05:00
Benjamin Peterson
67a9877866
merge 3.3
2014-11-05 11:30:00 -05:00
Benjamin Peterson
e71abcc7bb
merge 3.2
2014-11-05 11:29:39 -05:00
Benjamin Peterson
258f3f0dc2
use pythontest.net for url fragment test
2014-11-05 11:27:14 -05:00
Victor Stinner
5239caf835
(Merge 3.4) asyncio: Move loop attribute to _FlowControlMixin
...
Move the _loop attribute from the constructor of _SelectorTransport,
_ProactorBasePipeTransport and _UnixWritePipeTransport classes to the
constructor of the _FlowControlMixin class.
Add also an assertion to explicit that the parent class must ensure that the
loop is defined (not None)
2014-11-05 15:27:54 +01:00
Victor Stinner
004adb91f6
asyncio: Move loop attribute to _FlowControlMixin
...
Move the _loop attribute from the constructor of _SelectorTransport,
_ProactorBasePipeTransport and _UnixWritePipeTransport classes to the
constructor of the _FlowControlMixin class.
Add also an assertion to explicit that the parent class must ensure that the
loop is defined (not None)
2014-11-05 15:27:41 +01:00
Antoine Pitrou
d39e199a0d
Issue #22773 : fix failing test with old readline versions due to issue #19884 .
2014-11-04 14:53:01 +01:00
Antoine Pitrou
7e8b8678f1
Issue #22773 : fix failing test with old readline versions due to issue #19884 .
2014-11-04 14:52:10 +01:00
Benjamin Peterson
98e1b9158c
merge 3.4
2014-11-03 21:06:07 -05:00
Benjamin Peterson
1ea070e561
test that keyfile can be None
2014-11-03 21:05:01 -05: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
Benjamin Peterson
1cca273669
merge 3.4 ( #22417 )
2014-11-03 14:36:48 -05:00
Benjamin Peterson
4ffb075271
PEP 476: enable HTTPS certificate verification by default ( #22417 )
...
Patch by Alex Gaynor with some modifications by me.
2014-11-03 14:29:33 -05:00
Serhiy Storchaka
2cb0e73a89
Issue #22775 : Fixed unpickling of http.cookies.SimpleCookie with protocol 2
...
and above. Patch by Tim Graham.
2014-11-02 22:19:56 +02:00
Serhiy Storchaka
8cf7c1cff0
Issue #22775 : Fixed unpickling of http.cookies.SimpleCookie with protocol 2
...
and above. Patch by Tim Graham.
2014-11-02 22:18:25 +02:00
Antoine Pitrou
a14414dfe9
Merge heads
2014-11-02 18:42:41 +01:00
Antoine Pitrou
8a03896cac
Issue #22335 : Fix crash when trying to enlarge a bytearray to 0x7fffffff bytes on a 32-bit platform.
2014-11-02 18:41:56 +01:00
Antoine Pitrou
cc23154d02
Issue #22335 : Fix crash when trying to enlarge a bytearray to 0x7fffffff bytes on a 32-bit platform.
2014-11-02 18:40:09 +01:00
Ezio Melotti
6e2db04345
#22751 : merge with 3.4.
2014-11-02 19:14:54 +02:00
Ezio Melotti
8b23f5cc7a
#22751 : fix test___all__ warning about modified environment in the tests. Patch by Michael Cetrulo.
2014-11-02 19:08:35 +02:00
Antoine Pitrou
07df6555c4
Fix test_urllib without the ssl module
2014-11-02 17:23:14 +01:00
Ned Deily
048345d417
Issue #22770 : merge from 3.4
2014-11-01 19:33:25 -07:00
Ned Deily
91f01e175a
Issue #22770 : Prevent some Tk segfaults on OS X when running gui tests.
...
When running tests in subprocesses with the regrtest -j option, a bug
in Cocoa Tk can result in a Tcl segfault. Avoid the problem by forcing
Tk to fully initialize as an OS X gui process before destroying the
Tcl instance and creating another. (Original patch by Serhiy Storchaka)
2014-11-01 19:29:22 -07:00
Steve Dower
f6c69e6cc9
#22734 marshal needs a lower stack depth for debug builds on Windows
2014-11-01 15:15:16 -07:00
Steve Dower
86e9deb5aa
#22731 test_capi test fails because of mismatched newlines
2014-11-01 15:11:05 -07:00
Berker Peksag
8912270629
Issue #22665 : Add missing get_terminal_size and SameFileError to shutil.__all__.
2014-11-01 11:05:36 +02:00
Berker Peksag
8083cd6c3b
Issue #22665 : Add missing get_terminal_size and SameFileError to shutil.__all__.
2014-11-01 11:04:06 +02:00
Berker Peksag
8f791d358b
Issue #6623 : Remove deprecated Netrc class in the ftplib module.
...
Patch by Matt Chaput.
2014-11-01 10:45:57 +02:00
Serhiy Storchaka
b1847e7541
Issue #17381 : Fixed handling of case-insensitive ranges in regular expressions.
2014-10-31 12:37:50 +02:00
Serhiy Storchaka
4b8f8949b4
Issue #17381 : Fixed handling of case-insensitive ranges in regular expressions.
...
Added new opcode RANGE_IGNORE.
2014-10-31 12:36:56 +02:00
Serhiy Storchaka
d9b8dc272a
Merge heads
2014-10-31 00:57:57 +02:00
Serhiy Storchaka
7cc0a1f7cb
Issue #22410 : Module level functions in the re module now cache compiled
...
locale-dependent regular expressions taking into account the locale.
2014-10-31 00:56:45 +02:00
Serhiy Storchaka
4659cc0756
Issue #22410 : Module level functions in the re module now cache compiled
...
locale-dependent regular expressions taking into account the locale.
2014-10-31 00:53:49 +02:00
Antoine Pitrou
c689101a5e
Issue #22759 : Query methods on pathlib.Path() (exists(), is_dir(), etc.) now return False when the underlying stat call raises NotADirectoryError.
2014-10-30 23:15:25 +01:00
Antoine Pitrou
2b2852b1b4
Issue #22759 : Query methods on pathlib.Path() (exists(), is_dir(), etc.) now return False when the underlying stat call raises NotADirectoryError.
2014-10-30 23:14:03 +01:00
Serhiy Storchaka
51a43703af
Issue #22217 : Implemented reprs of classes in the zipfile module.
2014-10-29 22:42:06 +02:00
Zachary Ware
0f26a3a8c9
Closes #22173 : Merge with 3.4
2014-10-29 12:28:13 -05:00
Zachary Ware
2acbae8016
Issue #22173 : Update lib2to3 tests to use unittest test discovery.
2014-10-29 12:24:59 -05:00
Victor Stinner
55e614a2a8
Issue #11957 : Explicit parameter name when calling re.split() and re.sub()
2014-10-29 16:58:59 +01:00
Antoine Pitrou
be8d06f523
Issue #18216 : gettext now raises an error when a .mo file has an unsupported major version number. Patch by Aaron Hill.
2014-10-28 20:17:51 +01:00
Berker Peksag
ed68dd450a
Issue #22596 : support.transient_internet() now also catches
...
ConnectionRefusedError exceptions wrapped by urllib.error.URLError.
This change should fix sporadic failures in test_urllib2net.
2014-10-25 05:43:23 +03:00
Berker Peksag
8b63d3af9f
Issue #22596 : support.transient_internet() now also catches
...
ConnectionRefusedError exceptions wrapped by urllib.error.URLError.
This change should fix sporadic failures in test_urllib2net.
2014-10-25 05:42:30 +03:00
Antoine Pitrou
b64bca9852
Issue #13918 : Provide a locale.delocalize() function which can remove
...
locale-specific number formatting from a string representing a number,
without then converting it to a specific type. Patch by Cédric Krier.
2014-10-23 22:52:31 +02:00
Victor Stinner
b9d0199c07
Issue #22637 : avoid using a shell in uuid
...
Replace os.popen() with subprocess.Popen() in the uuid module.
2014-10-21 22:33:10 +02:00
Berker Peksag
1ed2e69a4a
Issue #22186 : Fix typos in Lib/.
...
Patch by Févry Thibault.
2014-10-19 18:07:05 +03:00
Berker Peksag
f23530f569
Issue #22186 : Fix typos in Lib/.
...
Patch by Févry Thibault.
2014-10-19 18:04:38 +03:00
Terry Jan Reedy
36d99dcf2b
Merge with 3.4
2014-10-18 17:10:32 -04:00
Terry Jan Reedy
dd09efdd53
Issue #20155 : Fix non-buildbot test failure on Windows. Patch by Claudiu Popa,
...
revised by R. David Murray.
2014-10-18 17:10:09 -04:00
Robert Collins
933430ab69
Issue #17401 : document closefd in io.FileIO docs and add to repr
...
closefd was documented in the open docs but not the matching FileIO
class documented. Further, closefd, part of the core state for the
object was not shown.
In review it was noted that the open docs are a little confusing about
the interaction between closefd and paths, so tweaked them at the same
time.
2014-10-18 13:32:43 +13:00
R David Murray
afce02ed38
Merge: #9351 : set_defaults on subparser is no longer ignored if set on parent.
2014-10-17 19:58:03 -04:00
R David Murray
7570cbdc6b
#9351 : set_defaults on subparser is no longer ignored if set on parent.
...
Before, if a default was set on the parent parser, any default for that
variable set via set_defaults on a subparser would be ignored. Now
the subparser set_defaults is honored.
Patch by Jyrki Pullianinen.
2014-10-17 19:55:11 -04:00
R David Murray
d2ff243b38
Merge: #21991 : make headerregistry params property MappingProxyType.
2014-10-17 19:32:08 -04:00
R David Murray
685b3495e1
#21991 : make headerregistry params property MappingProxyType.
...
It is unlikely anyone is using the fact that the dictionary returned
by the 'params' attribute was previously writable, but even if someone
is the API is provisional so this kind of change is acceptable (and
needed, to get the API "right" before it becomes official).
Patch by Stéphane Wirtel.
2014-10-17 19:30:13 -04:00
Antoine Pitrou
bc92bbd4d2
Issue #22653 : Fix an assertion failure in debug mode when doing a reentrant dict insertion in debug mode.
2014-10-18 00:35:44 +02:00
Antoine Pitrou
d696732025
Issue #22653 : Fix an assertion failure in debug mode when doing a reentrant dict insertion in debug mode.
2014-10-18 00:35:00 +02:00
Zachary Ware
f88cad0087
Merge with 3.4
2014-10-17 14:24:43 -05:00
Zachary Ware
be16d68071
Fix test_ctypes failure on OpenIndiana buildbot where _ctypes is not built
2014-10-17 14:24:14 -05:00
Zachary Ware
459c36490f
Issue #16000 : Convert test_curses to use unittest
2014-10-17 14:10:51 -05:00
Zachary Ware
baf45c590c
Issue #16000 : Convert test_curses to use unittest
2014-10-17 13:59:18 -05:00
Benjamin Peterson
dc8899f0e2
merge 3.4 ( #22643 )
2014-10-15 13:40:15 -04:00
Benjamin Peterson
3f9f612b7d
merge 3.3 ( #22643 )
2014-10-15 13:40:01 -04:00
Benjamin Peterson
4d856895bd
test is cpython only
2014-10-15 13:39:46 -04:00
Benjamin Peterson
6925264334
merge 3.4 ( #22643 )
2014-10-15 11:49:15 -04:00
Benjamin Peterson
1cbb3fe775
merge 3.3 ( #22643 )
2014-10-15 11:48:41 -04:00
Benjamin Peterson
e1bd38c03c
fix integer overflow in unicode case operations ( closes #22643 )
2014-10-15 11:47:36 -04:00
Antoine Pitrou
94522ebe38
Issue #22641 : In asyncio, the default SSL context for client connections is now created using ssl.create_default_context(), for stronger security.
2014-10-15 16:59:58 +02:00
Antoine Pitrou
fd39a89e0e
Issue #22641 : In asyncio, the default SSL context for client connections is now created using ssl.create_default_context(), for stronger security.
2014-10-15 16:58:21 +02:00
Berker Peksag
6554b86b1f
Issue #21338 : Add silent mode for compileall.
...
quiet parameters of compile_{dir, file, path} functions now have
a multilevel value.
Also, -q option of the CLI now have a multilevel value.
Patch by Thomas Kluyver.
2014-10-15 11:10:57 +03: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
Victor Stinner
c7dc55eb15
Merge 3.4 (asyncio)
2014-10-14 23:03:13 +02:00
Victor Stinner
f67f460242
Issue #18643 : asyncio.windows_utils now reuse socket.socketpair() on Windows if
...
available
Since Python 3.5, socket.socketpair() is now also available on Windows.
Make csock blocking before calling the accept() method, and fix also a typo in
an error message.
2014-10-14 22:56:25 +02:00
Charles-François Natali
98c745a773
Issue #18643 : Add socket.socketpair() on Windows.
2014-10-14 21:22:44 +01:00
Ethan Furman
987f3dd161
Issue22506: merge from 3.4
2014-10-14 08:59:14 -07:00
Ethan Furman
0ae550bdde
Issue22506: added methods on base Enum class now show up in dir of Enum subclass (3.4)
2014-10-14 08:58:32 -07:00
Charles-François Natali
4fa7a9fd1a
Merge.
2014-10-13 19:32:38 +01:00
Charles-François Natali
acbf5235b8
Issue #22435 : Fix a file descriptor leak when SocketServer bind fails.
2014-10-13 19:28:50 +01:00
Antoine Pitrou
44fff77684
Whitespace
2014-10-13 20:21:12 +02:00
Antoine Pitrou
0373a106a1
Issue #17636 : Circular imports involving relative imports are now supported.
2014-10-13 20:19:45 +02:00
Charles-François Natali
0f4f048fa5
Issue #22435 : Fix a file descriptor leak when SocketServer bind fails.
2014-10-13 19:19:26 +01:00
R David Murray
b0f5686ba4
#20815 : small readability improvements in ipaddress tests.
2014-10-12 15:17:44 -04:00
R David Murray
7567865867
#20815 : small readability improvements in ipaddress tests.
...
Patch by Michel Albert. We don't normally do patches that just tweak
whitespace, but ipaddress is relatively new and the package maintainers
approved the patch.
2014-10-12 15:17:22 -04:00
R David Murray
95cbe63001
Merge: #11973 : add test for previously fixed kevent signed/unsigned bug.
2014-10-12 12:42:01 -04:00
R David Murray
90f7afda61
#11973 : add test for previously fixed kevent signed/unsigned bug.
...
Patch by David Naylor.
2014-10-12 12:39:46 -04:00
Georg Brandl
b3ac84322f
#16040 : fix unlimited read from connection in nntplib.
2014-10-12 08:50:11 +02:00
Victor Stinner
2de8a6980a
(Merge 3.4) Issue #22601 : run_forever() now consumes BaseException of the
...
temporary task
If the coroutine raised a BaseException, consume the exception to not log a
warning. The caller doesn't have access to the local task.
2014-10-11 14:35:33 +02:00
Victor Stinner
c8bd53f815
Issue #22601 : run_forever() now consumes BaseException of the temporary task
...
If the coroutine raised a BaseException, consume the exception to not log a
warning. The caller doesn't have access to the local task.
2014-10-11 14:30:18 +02:00
Antoine Pitrou
759920c5cb
Issue #22604 : Fix assertion error in debug mode when dividing a complex number by (nan+0j).
2014-10-10 23:51:04 +02:00
Antoine Pitrou
9086f9260f
Issue #22604 : Fix assertion error in debug mode when dividing a complex number by (nan+0j).
2014-10-10 23:49:32 +02:00
Brett Cannon
1eb32c2045
Issue #20152 : Port the array module to Argument Clinic.
2014-10-10 16:26:45 -04:00
Petri Lehtinen
221439dd61
#11694 : merge with 3.4
2014-10-10 21:29:43 +03:00
Petri Lehtinen
3894b2a24f
Issue #11694 : Raise ConversionError in xdrlib as documented
2014-10-10 21:21:52 +03:00
Victor Stinner
1aa3cb6030
(Merge 3.4) test_venv: use support.rmtree() instead of shutil.rmtree() to fix
...
sporadic failures on Windows
2014-10-10 14:23:25 +02:00
Victor Stinner
866c4e2188
test_venv: use support.rmtree() instead of shutil.rmtree() to fix sporadic
...
failures on Windows
2014-10-10 14:23:00 +02:00
Berker Peksag
8ee1513ada
Issue #21456 : Skip two tests in test_urllib2net.py if _ssl module not present.
...
Patch by Remi Pointel.
2014-10-10 14:35:51 +03:00
Berker Peksag
b77983d2bd
Issue #21456 : Skip two tests in test_urllib2net.py if _ssl module not present.
...
Patch by Remi Pointel.
2014-10-10 14:34:16 +03:00
Serhiy Storchaka
7438e4b56f
Issue 1519638: Now unmatched groups are replaced with empty strings in re.sub()
...
and re.subn().
2014-10-10 11:06:31 +03:00
R David Murray
4487dd0ed5
#18615 : Make sndhdr return namedtuples.
...
Patch by Claudiu Popa.
2014-10-09 16:59:30 -04:00
Antoine Pitrou
94262ebc9c
Issue #22462 : Fix pyexpat's creation of a dummy frame to make it appear in exception tracebacks.
...
Initial patch by Mark Shannon.
2014-10-08 20:02:40 +02:00
Antoine Pitrou
0ddbf4795f
Issue #22462 : Fix pyexpat's creation of a dummy frame to make it appear in exception tracebacks.
...
Initial patch by Mark Shannon.
2014-10-08 20:00:09 +02:00
Antoine Pitrou
b1fdf47ff5
Issue #21965 : Add support for in-memory SSL to the ssl module.
...
Patch by Geert Jansen.
2014-10-05 20:41:53 +02:00
Antoine Pitrou
414e15a88d
Closes #21173 : Fix len() on a WeakKeyDictionary when .clear() was called with an iterator alive.
2014-10-05 20:04:06 +02:00
Antoine Pitrou
1bf974dc6e
Closes #21173 : Fix len() on a WeakKeyDictionary when .clear() was called with an iterator alive.
2014-10-05 20:02:28 +02: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
d577cea8ab
Merge 3.4
2014-10-05 17:38:45 +02:00
Victor Stinner
bed04a77ee
cleanup test_posix
2014-10-05 17:37:59 +02:00
Victor Stinner
047b7ae566
Issue #22390 : Remove files created by tests
2014-10-05 17:37:41 +02:00
Victor Stinner
f4e4b83824
(Merge 3.4) Issue #22290 : Fix error handling in the _posixsubprocess module.
...
* Don't call the garbage collector with an exception set: it causes an
assertion to fail in debug mode.
* Enhance also error handling if allocating an array for the executable list
failed.
* Add an unit test for 4 different errors in the _posixsubprocess module.
2014-10-05 17:25:48 +02:00
Victor Stinner
8f437aac06
Issue #22290 : Fix error handling in the _posixsubprocess module.
...
* Don't call the garbage collector with an exception set: it causes an
assertion to fail in debug mode.
* Enhance also error handling if allocating an array for the executable list
failed.
* Add an unit test for 4 different errors in the _posixsubprocess module.
2014-10-05 17:25:19 +02:00
Antoine Pitrou
4aae276eca
Issue #11271 : concurrent.futures.Executor.map() now takes a *chunksize*
...
argument to allow batching of tasks in child processes and improve
performance of ProcessPoolExecutor. Patch by Dan O'Reilly.
2014-10-04 20:20:10 +02:00
Serhiy Storchaka
e4f47088af
Fixed tests on Windows for issue #21883 .
2014-10-04 16:09:02 +03:00
Serhiy Storchaka
3deeeb0c39
Issue #21883 : os.path.join() and os.path.relpath() now raise a TypeError with
...
more helpful error message for unsupported or mismatched types of arguments.
2014-10-04 14:58:43 +03:00
Benjamin Peterson
91b62c4a8a
merge 3.4
2014-10-03 18:17:30 -04:00
Benjamin Peterson
91244e01bb
separate cert loading tests into Windows and non-Windows cases
2014-10-03 18:17:15 -04:00
Benjamin Peterson
8b9cfa1066
merge 3.4 ( #22449 )
2014-10-03 17:33:45 -04:00
Benjamin Peterson
5915b0f924
also use openssl envvars to find certs on windows ( closes #22449 )
...
Patch by Christian Heimes and Alex Gaynor.
2014-10-03 17:27:05 -04:00
R David Murray
b55f944fa9
Merge: #12780 : update inspect test skipIf for PEP 3147.
2014-10-03 11:16:08 -04:00
R David Murray
32562d7da3
#12780 : update inspect test skipIf for PEP 3147.
...
The test needs to be skipped if unicodedata is either part of the
main binary (a repackaging of cpython on Windows?) or has python
source (pypy?). PEP 3147 makes __file__ point to the .py source,
so we need to change the extension check from looking for the
old .pyc/.pyo to just looking for .py.
Note that this skip should never trigger on CPython itself, so
one could argue it should be dropped instead. But since it exists,
why risk breaking someone else's python.
2014-10-03 11:15:38 -04:00
Antoine Pitrou
392f4139b3
Make test_datetime a better citizen (issue #22540 )
2014-10-03 11:25:30 +02:00
R David Murray
f355943002
Merge: #8473 : Add tests that doctest uses universal newlines in testfile.
2014-10-02 22:43:51 -04:00
R David Murray
b48cb29ac4
#8473 : Add tests that doctest uses universal newlines in testfile.
...
Python3 does not have the bug covered by the issue.
2014-10-02 22:42:42 -04:00
Serhiy Storchaka
df77518d8c
Issue #20079 : Fixed tests.
2014-10-02 11:36:31 +03:00
Serhiy Storchaka
4601df58e7
Issue #20079 : Fixed tests.
2014-10-02 11:36:12 +03:00
Georg Brandl
4480d30b8b
ref #19855 : skip uuid test_find_mac on non-Posix as in later branches
2014-10-01 22:31:04 +02:00
Georg Brandl
ea68398355
Closes #20218 : Added convenience methods read_text/write_text and read_bytes/
...
write_bytes to pathlib.Path objects.
Thanks to Christopher Welborn and Ram Rachum for original patches.
2014-10-01 19:12:33 +02:00
Victor Stinner
3b09d21a9d
Issue #22333 : test_threaded_import now displays elapsed time in verbose mode.
2014-10-01 01:48:05 +02:00
Victor Stinner
d7722d7147
Issue #22333 : Extend timeout in test_threaded_import
...
Check if the sporadic failure is related to a timeout.
The test just failed on the buildbot "x86 Windows7 3.x": 1 thread done / 20
(the 'done' condition was not signaled because 1 < 20).
2014-10-01 01:45:16 +02:00
Georg Brandl
51c116223e
Issue #19855 : uuid.getnode() on Unix now looks on the PATH for the
...
executables used to find the mac address, with /sbin and /usr/sbin as
fallbacks.
Issue #11508 : Fixed uuid.getnode() and uuid.uuid1() on environment with
virtual interface. Original patch by Kent Frazier.
Issue #18784 : The uuid module no more attempts to load libc via ctypes.CDLL,
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
Issue #16102 : Make uuid._netbios_getnode() work again on Python 3.
2014-09-30 19:34:19 +02:00
Georg Brandl
3bc35672a2
Backport b533cc11d114 to fix intermittent test_urllibnet failures.
2014-09-30 17:30:18 +02:00
Victor Stinner
6b8e0ed562
(Merge 3.4) faulthandler: test_gil_released() now uses _sigsegv() instead of
...
_read_null(), because _read_null() cannot be used on AIX. On AIX, reading from
NULL is allowed: the first page of memory is a mapped read-only on AIX.
_read_null() and _sigabrt() don't accept parameters.
2014-09-30 13:55:30 +02:00
Victor Stinner
5083828d65
faulthandler: test_gil_released() now uses _sigsegv() instead of _read_null(),
...
because _read_null() cannot be used on AIX. On AIX, reading from NULL is
allowed: the first page of memory is a mapped read-only on AIX.
2014-09-30 13:54:14 +02:00
Benjamin Peterson
58ee2d31ab
merge 3.4 ( #22517 )
2014-09-29 22:49:05 -04:00
Benjamin Peterson
c44eb73473
merge 3.3 ( #22517 )
2014-09-29 22:48:51 -04:00
Benjamin Peterson
bbd0a323ae
clear BufferedRWPair weakrefs on deallocation ( closes #22517 )
2014-09-29 22:46:57 -04:00
Serhiy Storchaka
9baa5b2de2
Issue #22437 : Number of capturing groups in regular expression is no longer
...
limited by 100.
2014-09-29 22:49:23 +03:00
R David Murray
c31e6227f9
#17442 : Add chained traceback support to InteractiveInterpreter.
...
Patch by Claudiu Popa.
2014-09-29 11:25:00 -04:00
Alexander Belopolsky
6c7a4182f5
Closes issue #20858 : Enhancements/fixes to pure-python datetime module
...
This patch brings the pure-python datetime more in-line with the C
module. Patch contributed by Brian Kearns, a PyPy developer. PyPy
project has been running these modifications in PyPy2 stdlib.
This commit includes:
- General PEP8/cleanups;
- Better testing of argument types passed to constructors;
- Removal of duplicate operations;
- Optimization of timedelta creation;
- Caching the result of __hash__ like the C accelerator;
- Enhancements/bug fixes in tests.
2014-09-28 19:11:56 -04:00
Benjamin Peterson
a2f93885b0
merge 3.4 ( #22379 )
2014-09-28 12:57:22 -04:00
Benjamin Peterson
c31f12d196
check that exception messages are not empty ( #22379 )
...
Patch by Yongzhi Pan.
2014-09-28 12:56:42 -04:00
Serhiy Storchaka
402e1e388d
Issue #9850 : Fixed macpath.join() for empty first component. Patch by
...
Oleg Oshmyan.
2014-09-27 18:55:15 +03:00
Serhiy Storchaka
ca534ab495
Issue #9850 : Fixed macpath.join() for empty first component. Patch by
...
Oleg Oshmyan.
2014-09-27 18:53:23 +03:00
Berker Peksag
fe21e4d4d7
Issue #16324 : _charset parameter of MIMEText now also accepts email.charset.Charset instances.
...
Initial patch by Claude Paroz.
2014-09-27 00:57:29 +03:00
Yury Selivanov
081bbf6b28
inspect: Fix getsource() to support decorated functions.
...
Issue #1764286 . Patch by Claudiu Popa.
2014-09-26 17:34:54 -04:00
Yury Selivanov
97e2e06af8
os: Include posix functions in os.__all__. Closes issue #18554 .
...
Patch by Ronald Oussoren.
2014-09-26 12:33:06 -04:00
Yury Selivanov
d359013eea
asyncio.test_tasks: Fix test_env_var_debug to use correct asyncio module
2014-09-25 19:12:37 -04:00
Yury Selivanov
d5a8f5807f
asyncio.test_tasks: Fix test_env_var_debug to use correct asyncio module
2014-09-25 19:12:10 -04:00
Yury Selivanov
1cfd36fdd7
asyncio: Improve canceled timer handles cleanup. Closes issue #22448 .
...
Patch by Joshua Moore-Oliva.
2014-09-25 12:09:09 -04:00
Yury Selivanov
592ada9b4b
asyncio: Improve canceled timer handles cleanup. Closes issue #22448 .
...
Patch by Joshua Moore-Oliva.
2014-09-25 12:07:56 -04:00
Nick Coghlan
bca9acf7ca
Issue #18093 : fix test_capi test skip due to _testembed move
2014-09-25 19:48:15 +10:00
Yury Selivanov
f45ea46fe8
asyncio: Reverting 69d474dab479 as issue #21645 is now closed and debug is no longer needed
2014-09-24 23:41:28 -04:00
Yury Selivanov
d1223a7adc
asyncio.test_events: Partially reverting f7643c893587 to stay in sync with tulip codebase
2014-09-24 23:30:03 -04:00
Victor Stinner
3e4a80a2e1
(Merge 3.4) test_faulthandler: fix typo
2014-09-25 00:39:17 +02:00
Victor Stinner
29001c8319
test_faulthandler: fix typo
2014-09-25 00:38:48 +02:00
Berker Peksag
cf84098884
Issue #16056 : Rename test method in test_statistics to avoid conflict.
2014-09-24 15:03:57 +03:00
Berker Peksag
f8c111d4d7
Issue #16056 : Rename test method in test_statistics to avoid conflict.
2014-09-24 15:03:25 +03:00
Serhiy Storchaka
e9a086bf01
Issue #22427 : TemporaryDirectory no longer attempts to clean up twice when
...
used in the with statement in generator.
2014-09-24 13:29:27 +03:00
Serhiy Storchaka
5e193ac0bd
Issue #22427 : TemporaryDirectory no longer attempts to clean up twice when
...
used in the with statement in generator.
2014-09-24 13:26:25 +03:00
Serhiy Storchaka
c563caf3a2
Issue #22362 : Forbidden ambiguous octal escapes out of range 0-0o377 in
...
regular expressions.
2014-09-23 23:22:41 +03:00
Serhiy Storchaka
d8644db4e7
Fixed bytes literals in tests.
2014-09-23 23:04:54 +03:00
Serhiy Storchaka
cd9032d45b
Fixed bytes literals in tests.
2014-09-23 23:04:21 +03:00
Serhiy Storchaka
385ffbffe6
Issue #20912 : Now directories added to ZIP file have correct Unix and MS-DOS
...
directory attributes.
2014-09-23 22:42:02 +03:00
Serhiy Storchaka
46a34924e4
Issue #20912 : Now directories added to ZIP file have correct Unix and MS-DOS
...
directory attributes.
2014-09-23 22:40:23 +03:00
Serhiy Storchaka
09a555eb38
Fixed test_large_file_exception. Ported tests for large count of files
...
to AbstractTestZip64InSmallFiles.
2014-09-23 22:28:03 +03:00
Serhiy Storchaka
026a399bf9
Fixed test_large_file_exception. Ported tests for large count of files
...
to AbstractTestZip64InSmallFiles.
2014-09-23 22:27:34 +03:00
Serhiy Storchaka
07314bcbe7
Issue #21866 : ZipFile.close() no longer writes ZIP64 central directory
...
records if allowZip64 is false.
2014-09-23 21:35:57 +03:00
Serhiy Storchaka
cfbb394488
Issue #21866 : ZipFile.close() no longer writes ZIP64 central directory
...
records if allowZip64 is false.
2014-09-23 21:34:24 +03:00
Senthil Kumaran
a66e3885fb
Issue #22278 : Fix urljoin problem with relative urls, a regression observed
...
after changes to issue22118 were submitted.
Patch contributed by Demian Brecht and reviewed by Antoine Pitrou.
2014-09-22 15:49:16 +08:00
Serhiy Storchaka
560c578d1d
Issue #22423 : Fixed debugging output of the GROUPREF_EXISTS opcode in the re
...
module.
2014-09-21 22:48:24 +03:00
Serhiy Storchaka
44dae8bde3
Issue #22423 : Fixed debugging output of the GROUPREF_EXISTS opcode in the re
...
module.
2014-09-21 22:47:55 +03:00
Serhiy Storchaka
d7fc141c7d
Merge heads
2014-09-21 22:26:11 +03:00
Serhiy Storchaka
1a5426dbaf
Merge heads
2014-09-21 22:25:25 +03:00
Antoine Pitrou
6e311aa748
Issue #21332 : Ensure that ``bufsize=1`` in subprocess.Popen() selects line buffering, rather than block buffering.
2014-09-21 21:15:42 +02:00
Antoine Pitrou
afe8d0646c
Issue #21332 : Ensure that ``bufsize=1`` in subprocess.Popen() selects line buffering, rather than block buffering.
2014-09-21 21:10:56 +02:00
Serhiy Storchaka
c904e87c13
Issue #22423 : Unhandled exception in thread no longer causes unhandled
...
AttributeError when sys.stderr is None.
2014-09-21 22:09:20 +03:00
Serhiy Storchaka
52005c2e13
Issue #22423 : Unhandled exception in thread no longer causes unhandled
...
AttributeError when sys.stderr is None.
2014-09-21 22:08:13 +03:00
R David Murray
7c4093ca95
Merge: #21091 : make is_attachment a method.
2014-09-20 18:16:39 -04:00
R David Murray
8a97896a76
#21091 : make is_attachment a method.
...
Since EmailMessage is a provisional API we can fix API bugs in a
maintenance release, but I used a trick suggested by Serhiy to
maintain backward compatibility with 3.4.0/1.
2014-09-20 18:05:28 -04:00
R David Murray
1de0ac05f3
Merge: #21079 : is_attachment now looks only at the value, ignoring parameters.
2014-09-20 17:49:48 -04:00
R David Murray
97dfad7856
#21079 : is_attachment now looks only at the value, ignoring parameters.
2014-09-20 17:44:53 -04:00
Berker Peksag
bdfeb0387d
Issue #22247 : Add NNTPError to nntplib.__all__.
2014-09-20 08:54:32 +03:00
Berker Peksag
96756b6a27
Issue #22247 : Add NNTPError to nntplib.__all__.
2014-09-20 08:53:05 +03:00
Senthil Kumaran
8b7e161ac3
backport context argument of urlopen ( #22366 ) for pep 476
2014-09-19 15:23:30 +08:00
Senthil Kumaran
a5c85b3f5f
Issue #22366 : urllib.request.urlopen will accept a context object (SSLContext)
...
as an argument which will then used be for HTTPS connection.
Patch by Alex Gaynor.
2014-09-19 15:23:30 +08:00
Antoine Pitrou
e7811fca5e
Closes #11471 : avoid generating a JUMP_FORWARD instruction at the end of an if-block if there is no else-clause.
...
Original patch by Eugene Toder.
2014-09-18 03:06:50 +02:00
Antoine Pitrou
87538e7bc4
Issue #4180 : The warnings registries are now reset when the filters are modified.
2014-09-18 02:42:05 +02:00
Antoine Pitrou
cb0a006fd1
Issue #4180 : The warnings registries are now reset when the filters are modified.
2014-09-18 02:40:46 +02:00
Victor Stinner
605a64b436
(Merge 3.4) asyncio, Tulip issue 206: In debug mode, keep the callback in the
...
representation of Handle and TimerHandle after cancel().
2014-09-17 23:24:39 +02:00
Victor Stinner
1b38bc65dd
asyncio, Tulip issue 206: In debug mode, keep the callback in the
...
representation of Handle and TimerHandle after cancel().
2014-09-17 23:24:13 +02:00
Senthil Kumaran
dc41440401
Merge from 3.4
...
Issue #22419 : Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
2014-09-17 16:32:46 +08:00
Senthil Kumaran
86c9e1877c
Merge from 3.3
...
Issue #22419 : Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
2014-09-17 16:31:47 +08:00
Senthil Kumaran
e025b52db0
Issue #22419 : Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
2014-09-17 16:29:29 +08:00
Senthil Kumaran
810dc9bc81
Merge from 3.4
...
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
2014-09-17 13:19:34 +08:00
Senthil Kumaran
aa72b1b448
Merge from 3.3
...
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
2014-09-17 13:19:01 +08:00
Senthil Kumaran
2a42a0bff3
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
2014-09-17 13:17:58 +08:00
Ethan Furman
d9925a18ec
Close issue21706: add 'start' parameter to functional API
2014-09-16 20:35:55 -07:00
Antoine Pitrou
6cfa46e45f
Replace bad ftp URLs in test_urllib2net
2014-09-17 00:40:13 +02:00
Antoine Pitrou
bc2c4c9990
Replace bad ftp URLs in test_urllib2net
2014-09-17 00:39:21 +02:00
Antoine Pitrou
0d54887326
Lax cookie parsing in http.cookies could be a security issue when combined
...
with non-standard cookie handling in some Web browsers.
Reported by Sergey Bobrov.
2014-09-17 00:27:26 +02:00
Antoine Pitrou
637e4544af
Lax cookie parsing in http.cookies could be a security issue when combined
...
with non-standard cookie handling in some Web browsers.
Reported by Sergey Bobrov.
2014-09-17 00:25:57 +02:00