Serhiy Storchaka
2bef58577f
Issue #18518 : timeit now rejects statements which can't be compiled outside
...
a function or a loop (e.g. "return" or "break").
2015-01-26 12:09:17 +02:00
Serhiy Storchaka
230586739c
Issue #23094 : Fixed readline with frames in Python implementation of pickle.
2015-01-26 10:37:44 +02:00
Serhiy Storchaka
21d7533c4c
Issue #23094 : Fixed readline with frames in Python implementation of pickle.
2015-01-26 10:37:01 +02:00
Serhiy Storchaka
0e992b352a
Issue #7665 : Fixed tests test_ntpath and test_urllib2 when ran in the
...
directory containing a backslash.
2015-01-26 10:26:29 +02:00
Serhiy Storchaka
5106d044ec
Issue #7665 : Fixed tests test_ntpath and test_urllib2 when ran in the
...
directory containing a backslash.
2015-01-26 10:26:14 +02:00
Serhiy Storchaka
ffd48c9e3d
Issue #23268 : Fixed bugs in the comparison of ipaddress classes.
2015-01-26 10:11:39 +02:00
Serhiy Storchaka
f186e128b6
Issue #23268 : Fixed bugs in the comparison of ipaddress classes.
2015-01-26 10:11:16 +02:00
Serhiy Storchaka
34af5023fc
Issue #21408 : The default __ne__() now returns NotImplemented if __eq__()
...
returned NotImplemented. Removed incorrect implementations of __ne__().
2015-01-26 10:04:15 +02:00
Serhiy Storchaka
f4b7a02e93
Issue #21408 : The default __ne__() now returns NotImplemented if __eq__()
...
returned NotImplemented. Removed incorrect implementations of __ne__().
2015-01-26 09:57:07 +02:00
Serhiy Storchaka
4e1942bcd8
Don't use deprecated assertEquals.
2015-01-26 09:28:11 +02:00
Benjamin Peterson
60a2f49c8c
merge 3.4 ( #19996 )
2015-01-25 23:31:58 -05:00
Benjamin Peterson
155ceaa454
handle headers with no key ( closes #19996 )
...
Patch by Cory Benfield.
2015-01-25 23:30:30 -05:00
Raymond Hettinger
93035c44fd
Issue #23119 : Simplify setobject by inlining the special case for unicode equality testing.
2015-01-25 16:12:49 -08:00
Serhiy Storchaka
07985ef387
Issue #22286 : The "backslashreplace" error handlers now works with
...
decoding and translating.
2015-01-25 22:56:57 +02:00
Senthil Kumaran
cc522bdd0c
merge from 3.4
...
Increase http.client.HTTPConnection test coverage.
Added a new tunnel test to verify setting of _tunnel_host, _tunnel_port,
_tunnel_headers attributes on HTTPConnection object.
2015-01-24 19:26:18 -08:00
Senthil Kumaran
e6cc70123e
Increase http.client.HTTPConnection test coverage.
...
Added a new tunnel test to verify setting of _tunnel_host, _tunnel_port,
_tunnel_headers attributes on HTTPConnection object.
2015-01-24 19:24:59 -08:00
Ethan Furman
b95b56150f
Issue20284: Implement PEP461
2015-01-23 20:05:18 -08:00
Benjamin Peterson
8861502e07
prefer server alpn ordering over the client's
2015-01-23 17:30:26 -05:00
Benjamin Peterson
cca2732a82
add support for ALPN ( closes #20188 )
2015-01-23 16:35:37 -05:00
Benjamin Peterson
9d8a3ad02a
http.client: disable Nagle's algorithm ( closes #23302 )
...
Patch by Demian Brecht.
2015-01-23 11:02:57 -05:00
Gregory P. Smith
d775bcabe7
revert 7b833bd1f509. I misread the side effect that the code was triggering.
...
*any* kwarg supplied to _assert_python causes it to not append -E to the
command line flags so without='-E' does effectively work.
2015-01-22 22:56:06 -08:00
Gregory P. Smith
48e810069d
revert 7b833bd1f509. I misread the side effect that the code was triggering.
...
*any* kwarg supplied to _assert_python causes it to not append -E to the
command line flags so without='-E' does effectively work.
2015-01-22 22:55:00 -08:00
Gregory P. Smith
d16478095c
Remove the unimplemented but ignored without='-E' parameters being passed to
...
script_helper.assert_python_failure(). No such feature has ever existed,
thus it doesn't do what the comment claims. (It does add a 'without'
variable to the environment of the child process but that was not intended)
2015-01-22 22:05:00 -08:00
Gregory P. Smith
566646133e
Remove the unimplemented but ignored without='-E' parameters being passed to
...
script_helper.assert_python_failure(). No such feature has ever existed,
thus it doesn't do what the comment claims. (It does add a 'without'
variable to the environment of the child process but that was not intended)
2015-01-22 22:04:16 -08:00
Gregory P. Smith
058fb7a884
Only pass -E to the child interpreter if our interpreter was running in that
...
mode. Explicitly remove the PYTHONFAULTHANDLER environment variable before
launching a child interpreter when its presence would impact the test (the
reason -E was being used in the first place).
This enables running the test in an environment where other Python environment variables must be set in order for things to run (such as using PYTHONHOME to
tell an embedded interpreter where it should think it lives).
2015-01-22 17:53:24 -08:00
Gregory P. Smith
fe7c5d6e4e
Only pass -E to the child interpreter if our interpreter was running in that
...
mode. Explicitly remove the PYTHONFAULTHANDLER environment variable before
launching a child interpreter when its presence would impact the test (the
reason -E was being used in the first place).
This enables running the test in an environment where other Python environment
variables must be set in order for things to run (such as using PYTHONHOME to
tell an embedded interpreter where it should think it lives).
2015-01-22 17:33:28 -08:00
Gregory P. Smith
1d51ba6a6e
Break up TestCommandLine.test_env_var into four distinct tests.
2015-01-22 14:38:26 -08:00
Gregory P. Smith
34cd2ae69f
Break up TestCommandLine.test_env_var into four distinct tests.
2015-01-22 14:38:00 -08:00
Victor Stinner
f6228f02d7
Issue #23009 : Add missing "import sys" in test_selectors
2015-01-22 09:35:23 +01:00
Victor Stinner
f07717c105
Merge 3.4
2015-01-22 09:09:24 +01:00
Victor Stinner
14d45c06eb
Issue #23009 : Skip test_selectors.test_empty_select() on Windows
2015-01-22 09:07:36 +01:00
Victor Stinner
91d11bbb2d
Merge 3.4 (asyncio)
2015-01-21 23:40:19 +01:00
Victor Stinner
442b0adccd
asyncio: pyflakes, remove unused import
...
tests: Remove unused function; inline another function
2015-01-21 23:39:16 +01:00
Victor Stinner
cd0f7f9832
asyncio: Enhance BaseProactorEventLoop._loop_self_reading()
...
* Handle correctly CancelledError: just exit
* On error, log the exception and exit
Don't try to close the event loop, it is probably running and so it cannot be
closed.
2015-01-21 23:38:37 +01:00
Gregory P. Smith
afb507c002
Add the command line to the AssertionError raised by test.script_helper's
...
Python subprocess failure assertion error messages for easier debugging.
Adds a unittest for test.script_helper to confirm that this code works as
it is otherwise uncovered by an already passing test suite that uses it. :)
2015-01-20 17:21:41 -08:00
Gregory P. Smith
b5684c48e1
Add the command line to the AssertionError raised by test.script_helper's
...
Python subprocess failure assertion error messages for easier debugging.
Adds a unittest for test.script_helper to confirm that this code works as
it is otherwise uncovered by an already passing test suite that uses it. :)
2015-01-20 17:19:47 -08:00
Zachary Ware
b4826c3fd1
Merge with 3.4 ( closes #23280 )
2015-01-20 14:11:38 -06:00
Zachary Ware
b176d40398
Issue #23280 : Fix docstrings for binascii.(un)hexlify
2015-01-20 13:59:46 -06:00
Serhiy Storchaka
b53f0fbf96
Issue #23266 : Restore the performance of ipaddress.collapse_addresses() whith
...
duplicated addresses and simplify the code.
2015-01-19 00:41:32 +02:00
Raymond Hettinger
1202a4733e
Issue 23261: Clean-up the hack to store the set.pop() search finger in a hash field instead of the setobject.
2015-01-18 13:12:42 -08:00
Serhiy Storchaka
a556af77a7
Fixed tests for issue #23133 (pickling of IPv4Network was not tested).
2015-01-18 22:56:47 +02:00
Serhiy Storchaka
5f38f5c502
Issue #23133 : Pickling of ipaddress objects now produces more compact and
...
portable representation.
2015-01-18 22:36:33 +02:00
Antoine Pitrou
e6f250ed90
Issue #23266 : Much faster implementation of ipaddress.collapse_addresses() when there are many non-consecutive addresses.
2015-01-18 16:22:47 +01:00
Serhiy Storchaka
82e07b92b3
Issue #23181 : More "codepoint" -> "code point".
2015-01-18 11:33:31 +02:00
Serhiy Storchaka
d3faf43f9b
Issue #23181 : More "codepoint" -> "code point".
2015-01-18 11:28:37 +02:00
Ned Deily
3bbb37e09b
Issue #23211 : Fix patch for 3.4 differences.
2015-01-17 17:31:13 -08:00
Ned Deily
cad3eb6d5d
Issue #23211 : merge from 3.4
2015-01-17 16:59:50 -08:00
Ned Deily
1e012e6c7f
Issue #23211 : Workaround test_logging failure on some OS X 10.6 systems:
...
getaddrinfo("localhost") can fail depending on the name server configuration,
use "127.0.0.0" instead.
2015-01-17 16:57:19 -08:00
Antoine Pitrou
1285c9b782
Issue #21817 : When an exception is raised in a task submitted to a ProcessPoolExecutor, the remote traceback is now displayed in the parent process.
...
Patch by Claudiu Popa.
2015-01-17 20:02:14 +01:00
Antoine Pitrou
26795baaa8
Issue #15955 : Add an option to limit output size when decompressing LZMA data.
...
Patch by Nikolaus Rath and Martin Panter.
2015-01-17 16:22:18 +01:00
Benjamin Peterson
5b883296f6
merge 3.4 ( #22986 )
2015-01-16 20:46:37 -05:00
Benjamin Peterson
bd341629b0
capitialize "HttpOnly" and "Secure" as they appear in the standard and other impls ( closes #23250 )
...
Patch by Jon Dufresne.
2015-01-16 20:43:55 -05:00
Victor Stinner
5f9fd1dd79
Merge 3.4 (asyncio)
2015-01-15 22:53:21 +01:00
Victor Stinner
f716d8b7a5
Issue #22685 : Fix test_pause_reading() of asyncio/test_subprocess
...
Override the connect_read_pipe() method of the loop to mock immediatly
pause_reading() and resume_reading() methods.
The test failed randomly on FreeBSD 9 buildbot and on Windows using trollius.
2015-01-15 22:52:59 +01:00
Victor Stinner
a39eb0f42b
Merge 3.4 (asyncio)
2015-01-15 16:29:23 +01:00
Victor Stinner
922bc2ca12
Closes #23219 : cancelling asyncio.wait_for() now cancels the task
2015-01-15 16:29:10 +01:00
Victor Stinner
9fef5244eb
Merge 3.4 (asyncio)
2015-01-15 14:25:08 +01:00
Victor Stinner
ab8848bc2a
asyncio: Close transports in tests
...
* Use test_utils.run_briefly() to execute pending calls to really close
transports
* sslproto: mock also _SSLPipe.shutdown(), it's need to close the transport
* pipe test: the test doesn't close explicitly the PipeHandle, so ignore
the warning instead
* test_popen: use the context manager ("with p:") to explicitly close pipes
2015-01-15 14:24:55 +01:00
Victor Stinner
7d78d0d91c
Merge 3.4 (asyncio)
2015-01-15 13:23:36 +01:00
Victor Stinner
02392c9282
Issue #23243 : Close explicitly transports in asyncio tests
2015-01-15 13:18:32 +01:00
Victor Stinner
33cb0396e8
Issue #23243 : Close explicitly event loops in asyncio tests
2015-01-15 13:17:34 +01:00
Victor Stinner
41ed958ee6
Issue #23243 : Fix asyncio._UnixWritePipeTransport.close()
...
Do nothing if the transport is already closed. Before it was not possible to
close the transport twice.
2015-01-15 13:16:50 +01:00
Victor Stinner
93e42c03b7
Merge 3.4 (asyncio)
2015-01-15 00:05:18 +01:00
Victor Stinner
29ad0111bd
asyncio: sync with Tulip
...
* PipeHandle now uses None instead of -1 for a closed handle
* Sort imports in windows_utils.
* Fix test_events on Python older than 3.5. Skip SSL tests on the
ProactorEventLoop if ssl.MemoryIO is missing
* Fix BaseEventLoop._create_connection_transport(). Close the transport if the
creation of the transport (if the waiter) gets an exception.
* _ProactorBasePipeTransport now sets _sock to None when the transport is
closed.
* Fix BaseSubprocessTransport.close(). Ignore pipes for which the protocol is
not set yet (still equal to None).
* TestLoop.close() now calls the close() method of the parent class
(BaseEventLoop).
* Cleanup BaseSelectorEventLoop: create the protocol on a separated line for
readability and ease debugging.
* Fix BaseSubprocessTransport._kill_wait(). Set the _returncode attribute, so
close() doesn't try to terminate the process.
* Tests: explicitly close event loops and transports
* UNIX pipe transports: add closed/closing in repr(). Add "closed" or "closing"
state in the __repr__() method of _UnixReadPipeTransport and
_UnixWritePipeTransport classes.
2015-01-15 00:04:21 +01:00
Victor Stinner
f664118817
Merge 3.4 (asyncio)
2015-01-14 17:00:29 +01:00
Victor Stinner
177e9f0855
Issue #23197 , asyncio: On SSL handshake failure, check if the waiter is
...
cancelled before setting its exception.
* Add unit tests for this case.
* Cleanup also sslproto.py
2015-01-14 16:56:20 +01:00
Victor Stinner
e54dd0b92b
Merge 3.4 (asyncio)
2015-01-14 02:13:51 +01:00
Victor Stinner
f651a60407
Python issue #23173 : sync with Tulip
...
* If an exception is raised during the creation of a subprocess, kill the
subprocess (close pipes, kill and read the return status). Log an error in
such case.
* Fix SubprocessStreamProtocol.connection_made() to handle cancelled waiter.
Add unit test cancelling subprocess methods.
2015-01-14 02:10:33 +01:00
Victor Stinner
81a04f7ad4
Merge 3.4 (asyncio: new SSL implementation)
2015-01-14 00:19:55 +01:00
Victor Stinner
231b404cb0
Issue #22560 : New SSL implementation based on ssl.MemoryBIO
...
The new SSL implementation is based on the new ssl.MemoryBIO which is only
available on Python 3.5. On Python 3.4 and older, the legacy SSL implementation
(using SSL_write, SSL_read, etc.) is used. The proactor event loop only
supports the new implementation.
The new asyncio.sslproto module adds _SSLPipe, SSLProtocol and
_SSLProtocolTransport classes. _SSLPipe allows to "wrap" or "unwrap" a socket
(switch between cleartext and SSL/TLS).
Patch written by Antoine Pitrou. sslproto.py is based on gruvi/ssl.py of the
gruvi project written by Geert Jansen.
This change adds SSL support to ProactorEventLoop on Python 3.5 and newer!
It becomes also possible to implement STARTTTLS: switch a cleartext socket to
SSL.
2015-01-14 00:19:09 +01:00
Victor Stinner
7d5a95627b
Merge 3.4 (asyncio)
2015-01-13 16:13:36 +01:00
Victor Stinner
9036e49ba1
Tulip issue 184: Fix test_pipe() on Windows
...
Pass explicitly the event loop to StreamReaderProtocol.
2015-01-13 16:13:06 +01:00
Benjamin Peterson
610bc6a211
merge 3.4 ( #23221 )
2015-01-13 09:20:31 -05:00
Benjamin Peterson
82f34ada45
fix instances of consecutive articles ( closes #23221 )
...
Patch by Karan Goel.
2015-01-13 09:17:24 -05:00
Victor Stinner
458fc6f98c
Issue #23209 , #23225 : selectors.BaseSelector.get_key() now raises a
...
RuntimeError if the selector is closed. And selectors.BaseSelector.close() now
clears its internal reference to the selector mapping to break a reference
cycle. Initial patch written by Martin Richard.
2015-01-13 10:00:55 +01:00
Victor Stinner
38dc250521
Issue #23209 , #23225 : selectors.BaseSelector.close() now clears its internal
...
reference to the selector mapping to break a reference cycle. Initial patch
written by Martin Richard.
2015-01-13 09:58:33 +01:00
Antoine Pitrou
17cba7daf5
Issue #19777 : Provide a home() classmethod on Path objects.
...
Contributed by Victor Salgado and Mayank Tripathi.
2015-01-12 21:03:41 +01:00
Antoine Pitrou
dc3eaa80d4
Issue #23206 : Make ``json.dumps(..., ensure_ascii=False)`` as fast as the default case of ``ensure_ascii=True``. Patch by Naoki Inada.
2015-01-11 16:41:01 +01:00
Mark Dickinson
a5d0c7c2fd
Issue #23185 : add math.inf and math.nan constants.
2015-01-11 11:55:29 +00:00
Victor Stinner
e969439862
Issue #19776 : Fix test_pathlib.test_expanduser()
...
Skip users with an empty home directory.
2015-01-10 09:00:20 +01:00
Victor Stinner
3cd440df22
Merge 3.4 (asyncio)
2015-01-09 21:32:24 +01:00
Victor Stinner
70db9e428a
asyncio: sync with Tulip
...
* Tulip issue 184: FlowControlMixin constructor now get the event loop if the
loop parameter is not set. Add unit tests to ensure that constructor of
StreamReader and StreamReaderProtocol classes get the event loop.
* Remove outdated TODO/XXX
2015-01-09 21:32:05 +01:00
Brett Cannon
02d8454002
Issue #23014 : Make importlib.abc.Loader.create_module() required when
...
importlib.abc.Loader.exec_module() is also defined.
Before this change, create_module() was optional **and** could return
None to trigger default semantics. This change now reduces the
options for choosing default semantics to one and in the most
backporting-friendly way (define create_module() to return None).
2015-01-09 11:39:21 -05:00
Victor Stinner
12985b5da7
Merge 3.4 (asyncio)
2015-01-09 00:09:35 +01:00
Victor Stinner
15cc678d89
asyncio: Truncate to 80 columns
2015-01-09 00:09:10 +01:00
Benjamin Peterson
15042921ad
enable cert validation in test
2015-01-07 22:12:43 -06:00
Benjamin Peterson
23ef9fac16
trying again
2015-01-07 21:21:34 -06:00
Benjamin Peterson
e6838e08ef
reorder cipher prefs
2015-01-07 20:52:40 -06:00
Benjamin Peterson
44c77791ab
drop 256
2015-01-07 20:30:59 -06:00
Benjamin Peterson
359f2982f4
try using AES256
2015-01-07 20:03:27 -06:00
Benjamin Peterson
8791d697e0
fix assertions after ciphers were changed
2015-01-07 14:29:45 -06:00
Benjamin Peterson
f78b78aed4
rc4 is a long time favorite
2015-01-07 14:21:22 -06:00
Benjamin Peterson
438a8db763
everyone should support AES ciphers
2015-01-07 13:28:40 -06:00
Benjamin Peterson
9f6eceab46
include some more ciphers
2015-01-07 12:59:20 -06:00
Benjamin Peterson
aacd524118
force test server to speak tlsv1
2015-01-07 11:42:38 -06:00
Benjamin Peterson
e27a421354
remove apparently wrong assertion about des bit size
2015-01-07 11:33:51 -06:00
Benjamin Peterson
4cb17812d9
expose the client's cipher suites from the handshake ( closes #23186 )
2015-01-07 11:14:26 -06:00
Nick Coghlan
582acb75e9
Merge issue 19548 changes from 3.4
2015-01-07 00:37:01 +10:00
Nick Coghlan
b9fdb7a452
Issue 19548: update codecs module documentation
...
- clarified the distinction between text encodings and other codecs
- clarified relationship with builtin open and the io module
- consolidated documentation of error handlers into one section
- clarified type constraints of some behaviours
- added tests for some of the new statements in the docs
2015-01-07 00:22:00 +10:00
Victor Stinner
5d575399bc
Issue #23145 : regrtest now shows errors and raises an exception if
...
loader.loadTestsFromModule() logged errors.
2015-01-06 14:05:03 +01:00
Victor Stinner
fcfed19913
Issue #21356 : Make ssl.RAND_egd() optional to support LibreSSL. The
...
availability of the function is checked during the compilation. Patch written
by Bernard Spil.
2015-01-06 13:54:58 +01:00
Victor Stinner
789b805700
test_ssl: add more debug to investigate test_openssl_version() failure on
...
OpenBSD with LibreSSL.
2015-01-06 11:51:06 +01:00
Victor Stinner
4ae5467134
Merge 3.4 (asyncio)
2015-01-06 01:22:54 +01:00
Victor Stinner
212994e4e2
Issue #23140 , asyncio: Simplify the unit test
2015-01-06 01:22:45 +01:00
Victor Stinner
43a8534364
Merge 3.4 (asyncio)
2015-01-06 01:14:09 +01:00
Victor Stinner
c447ba04e7
Issue #23140 , asyncio: Fix cancellation of Process.wait(). Check the state of
...
the waiter future before setting its result.
2015-01-06 01:13:49 +01:00
Ned Deily
04c365d7fb
Issue #22165 : merge from 3.4
2015-01-05 01:05:36 -08:00
Ned Deily
1418320850
Issue #22165 : Skip test_undecodable_filename on OS X prior to 10.5.
...
10.4 systems do not allow creation of files with such filenames.
2015-01-05 01:02:30 -08:00
Gregory P. Smith
9eb1faf39b
fix issue23157 - time_hashlib hadn't been ported to Python 3.
2015-01-04 00:36:59 -08:00
Gregory P. Smith
5719ef17ba
fix issue23157 - time_hashlib hadn't been ported to Python 3.
2015-01-04 00:36:04 -08:00
Serhiy Storchaka
697a526fa1
Issue #23132 : Improve performance and introspection support of comparison
...
methods created by functool.total_ordering.
2015-01-01 15:23:12 +02:00
Antoine Pitrou
8477ed6048
Issue #19776 : Add a expanduser() method on Path objects.
...
Patch by Serhiy.
2014-12-30 20:54:45 +01:00
Victor Stinner
0f9f7497d0
Merge 3.4 (asyncio)
2014-12-26 21:29:45 +01:00
Victor Stinner
956de691f8
Issue #22926 : In debug mode, call_soon(), call_at() and call_later() methods of
...
asyncio.BaseEventLoop now use the identifier of the current thread to ensure
that they are called from the thread running the event loop.
Before, the get_event_loop() method was used to check the thread, and no
exception was raised when the thread had no event loop. Now the methods always
raise an exception in debug mode when called from the wrong thread. It should
help to notice misusage of the API.
2014-12-26 21:07:52 +01:00
Victor Stinner
d7ff5a5375
asyncio: sync with Tulip
...
* Fix pyflakes warnings: remove unused imports and variables
* asyncio.test_support now uses test.support and test.script_helper if available
2014-12-26 21:16:42 +01:00
Benjamin Peterson
fe975a234f
merge 3.4 ( #23112 )
2014-12-26 10:56:51 -06:00
Benjamin Peterson
94cb7a2429
fix behavior of trailing slash redirection when a query string is involved ( closes #23112 )
2014-12-26 10:53:43 -06:00
R David Murray
f2ad173eaf
#20069 : Add tests for os.chown.
...
Patch by Vajrasky Kok.
2014-12-25 18:36:56 -05:00
Benjamin Peterson
98beb7599e
merge 3.4 ( #23093 )
2014-12-21 21:00:51 -06:00
Benjamin Peterson
10e76b67c9
allow more operations to work on detached streams ( closes #23093 )
...
Patch by Martin Panter.
2014-12-21 20:51:50 -06:00
Victor Stinner
fe02e39029
Issue #22585 : On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),
...
instead of reading /dev/urandom, to get pseudo-random bytes.
2014-12-21 01:16:38 +01:00
Victor Stinner
4d6a3d6c01
Issue #22585 : On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),
...
instead of reading /dev/urandom, to get pseudo-random bytes.
2014-12-21 01:16:38 +01:00
Serhiy Storchaka
3c6fe4da88
Issue #19104 : pprint now produces evaluable output for wrapped strings.
2014-12-20 20:58:28 +02:00
Serhiy Storchaka
fe3dc376fa
Issue #19104 : pprint now produces evaluable output for wrapped strings.
2014-12-20 20:57:15 +02:00
Serhiy Storchaka
f65d1d3b02
Issue #23071 : "namereplace_errors" was added only in 3.5.
2014-12-20 18:53:01 +02:00
Serhiy Storchaka
4d33ff6183
Issue #23071 : Added missing names to codecs.__all__. Patch by Martin Panter.
2014-12-20 17:46:05 +02:00
Serhiy Storchaka
de3ee5b94f
Issue #23071 : Added missing names to codecs.__all__. Patch by Martin Panter.
2014-12-20 17:42:38 +02:00
Victor Stinner
2f65f6678b
Merge 3.4 (asyncio)
2014-12-19 17:11:10 +01:00
Victor Stinner
4d825b45a0
asyncio: IocpProactor.wait_for_handle() test now also checks the result of the
...
future
2014-12-19 17:10:44 +01:00
Victor Stinner
f00346ce37
Merge 3.4 (asyncio)
2014-12-18 12:30:33 +01:00
Victor Stinner
dc7765d12c
asyncio: sync with Tulip
2014-12-18 12:29:53 +01:00
Victor Stinner
42830578c6
Merge 3.4 (asyncio)
2014-12-18 01:20:29 +01:00
Victor Stinner
3a1c738e6c
Issue #23074 : asyncio.get_event_loop() now raises an exception if the thread
...
has no event loop even if assertions are disabled.
2014-12-18 01:20:10 +01:00
Victor Stinner
fc6fdb112d
Issue #23009 : Skip test_selectors.test_empty_select() on Windows
2014-12-17 01:07:56 +01:00
Serhiy Storchaka
707b5ccde5
Issue #22783 : Pickling now uses the NEWOBJ opcode instead of the NEWOBJ_EX
...
opcode if possible.
2014-12-16 19:43:46 +02:00
Serhiy Storchaka
01bdd9a980
Issue #15513 : Added a __sizeof__ implementation for pickle classes.
2014-12-16 19:40:58 +02:00
Serhiy Storchaka
5bbd231f27
Issue #15513 : Added a __sizeof__ implementation for pickle classes.
2014-12-16 19:39:08 +02:00
Serhiy Storchaka
f5553bbb0e
Issue #19858 : pickletools.optimize() now aware of the MEMOIZE opcode, can
...
produce more compact result and no longer produces invalid output if input
data contains MEMOIZE opcodes together with PUT or BINPUT opcodes.
2014-12-16 18:02:49 +02:00
Serhiy Storchaka
05dadcfb28
Issue #19858 : pickletools.optimize() now aware of the MEMOIZE opcode, can
...
produce more compact result and no longer produces invalid output if input
data contains MEMOIZE opcodes together with PUT or BINPUT opcodes.
2014-12-16 18:00:56 +02:00
Steve Dower
03a144bb6a
#22980 Adds platform and version tags to .pyd files
2014-12-15 20:45:23 -08:00
Benjamin Peterson
8d33598e5d
merge 3.4 ( #23053 )
2014-12-15 10:05:13 -05:00
Benjamin Peterson
4c11c92578
remove extra ssl imports ( closes #23053 )
...
Patch from Jan Matejek.
2014-12-15 10:04:13 -05:00
Serhiy Storchaka
65ee4674e2
Issue #22777 : Test pickling with all protocols.
2014-12-15 14:06:02 +02:00
Serhiy Storchaka
bad1257c96
Issue #22777 : Test pickling with all protocols.
2014-12-15 14:03:42 +02:00
Serhiy Storchaka
0e32ea1089
Issue #23015 : Improved testing of the uuid module.
2014-12-15 12:06:22 +02:00
Serhiy Storchaka
79b81738ef
Issue #23015 : Improved testing of the uuid module.
2014-12-15 12:03:44 +02:00
Benjamin Peterson
2a7d05a9f2
merge 3.4
2014-12-13 16:13:31 -05:00
Benjamin Peterson
9566de18e6
make sure server threads get cleaned up
2014-12-13 16:13:24 -05:00
Benjamin Peterson
7ced53cc63
merge 3.4 ( #23048 )
2014-12-13 16:08:15 -05:00
Benjamin Peterson
3cda0ed062
pop the loop block even for infinite while loops ( closes #23048 )
2014-12-13 16:06:19 -05:00
Victor Stinner
437ffbdcd8
test_selectors: Tolerate 2.0 seconds instead of 1.6 sec for very slow buildbots
2014-12-12 12:57:35 +01:00
Victor Stinner
3f7e064b2b
Issue #22935 : Fix test_ssl when the SSLv3 protocol is not supported
2014-12-12 12:27:08 +01:00
Serhiy Storchaka
4ac7ed97a8
Issue #22095 : Fixed HTTPConnection.set_tunnel with default port. The port
...
value in the host header was set to "None". Patch by Demian Brecht.
2014-12-12 09:29:15 +02:00
Victor Stinner
1e40f10886
asyncio, tulip issue 209: Fix subprocess for close_fds=False on Python 3.3
...
Mark the write end of the stdin pipe as non-inheritable.
2014-12-11 23:30:17 +01:00
Victor Stinner
df75d5b402
asyncio, tulip issue 202: Add unit test of pause/resume writing for proactor
...
socket transport
2014-12-11 22:23:19 +01:00
Serhiy Storchaka
60599525c5
Issue #23016 : A warning no longer produces AttributeError when the program
...
is run with pythonw.exe.
2014-12-10 22:59:55 +02:00
Berker Peksag
884afd92f5
Issue #21775 : shutil.copytree(): fix crash when copying to VFAT
...
An exception handler assumed that that OSError objects always have a
'winerror' attribute. That is not the case, so the exception handler
itself raised AttributeError when run on Linux (and, presumably, any
other non-Windows OS).
Patch by Greg Ward.
2014-12-10 02:50:32 +02:00
Yury Selivanov
7de29687f2
inspect: Fix getsource() to load updated source of reloaded module
...
Issue #1218234 . Initial patch by Berker Peksag.
2014-12-08 18:00:25 -05:00
Yury Selivanov
d60ef4aa9d
selectors: Make sure EpollSelecrtor.select() works when no FD is registered.
...
Closes issue #23009 .
2014-12-08 12:21:58 -05:00
Benjamin Peterson
a090f01bb6
HTTPSConnection: prefer the context's check_hostname attribute over the constructor parameter ( #22959 )
2014-12-07 13:18:25 -05:00
Benjamin Peterson
e32467cf6a
allow ssl module to compile if openssl doesn't support SSL 3 ( closes #22935 )
...
Patch by Kurt Roeckx.
2014-12-05 21:59:35 -05:00
Benjamin Peterson
eca72d47f5
merge 3.3 ( #16043 )
2014-12-05 20:34:56 -05:00
Benjamin Peterson
81b7374fbe
merge 3.2 ( #16043 )
2014-12-05 20:30:54 -05:00
Benjamin Peterson
4e9cefaf86
add a default limit for the amount of data xmlrpclib.gzip_decode will return ( closes #16043 )
2014-12-05 20:15:15 -05:00
Victor Stinner
f3e2e09213
Closes #22429 , asyncio: Fix EventLoop.run_until_complete(), don't stop the
...
event loop if a BaseException is raised, because the event loop is already
stopped.
2014-12-05 01:44:10 +01:00
Victor Stinner
e80bf0d4a9
Closes #22922 : More EventLoop methods fail if the loop is closed. Initial patch
...
written by Torsten Landschoff.
create_task(), call_at(), call_soon(), call_soon_threadsafe() and
run_in_executor() now raise an error if the event loop is closed.
2014-12-04 23:07:47 +01:00
Victor Stinner
dd8224e6a4
Issue #22685 : Fix test_pause_reading() of asyncio test_subprocess
...
* mock also resume_reading()
* ensure that resume_reading() is called
2014-12-04 23:06:13 +01:00
Serhiy Storchaka
1ad088f3ea
Issue #14099 : ZipFile.open() no longer reopen the underlying file. Objects
...
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
2014-12-03 09:11:57 +02:00
Barry Warsaw
eb2763dd43
Fix the test to use an os.sep agnostic test. Hopefully this will fix the
...
Windows buildbots. Found by Jeremy Kloth.
2014-12-02 11:30:43 -05:00
Serhiy Storchaka
83cf99d733
Issue #20335 : bytes constructor now raises TypeError when encoding or errors
...
is specified with non-string argument. Based on patch by Renaud Blanch.
2014-12-02 09:24:06 +02:00
Barry Warsaw
9d98c9bf42
Make this change a little more robust for up-merging.
2014-12-01 18:15:26 -05:00
Barry Warsaw
9e4db75426
- Issue #22966 : Fix __pycache__ pyc file name clobber when pyc_compile is
...
asked to compile a source file containing multiple dots in the source file
name.
2014-12-01 17:23:55 -05:00
Barry Warsaw
2a413853f1
- Issue #22966 : Fix __pycache__ pyc file name clobber when pyc_compile is
...
asked to compile a source file containing multiple dots in the source file
name.
2014-12-01 17:10:10 -05:00
Serhiy Storchaka
56a6d855e2
Removed duplicated words in in comments and docs.
2014-12-01 18:28:43 +02:00
Serhiy Storchaka
b491e0521f
Issue #21032 . Fixed socket leak if HTTPConnection.getresponse() fails.
...
Original patch by Martin Panter.
2014-12-01 13:07:45 +02:00
Serhiy Storchaka
9cba989502
Issue #22838 : All test_re tests now work with unittest test discovery.
2014-12-01 11:06:45 +02:00
Benjamin Peterson
66323415c7
backout 9fcf4008b626 ( #9179 ) for further consideration
2014-11-30 11:49:00 -05:00
Antoine Pitrou
2b3b95be62
Close issue #22895 : fix test failure introduced by the fix for issue #22462 .
2014-11-29 15:56:07 +01:00
Ned Deily
153879075f
Issue #16113 : Also remove test_case_sha3_224_huge
2014-11-28 15:21:12 -08:00
Victor Stinner
cbbd04d176
Issue #22685 : Debug test_pause_reading() on FreeBSD
2014-11-28 18:02:03 +01:00
Serhiy Storchaka
9a4fc19589
Issue #21280 : Fixed a bug in shutil.make_archive() when create an archive of
...
current directory in current directory.
2014-11-28 00:48:46 +02:00
Serhiy Storchaka
fc8e9b0e72
Issue #22915 : SAX parser now supports files opened with file descriptor or
...
bytes path.
2014-11-27 22:13:16 +02:00
Serhiy Storchaka
a86700ae87
Issue #22609 : Revert changes in UserDict. They conflicted with existing tests.
2014-11-27 17:45:44 +02:00
Serhiy Storchaka
ae5cb214d2
Issue #22609 : Constructors and update methods of mapping classes in the
...
collections module now accept the self keyword argument.
2014-11-27 16:25:51 +02:00
Benjamin Peterson
5b5350787f
use skipUnless
2014-11-26 14:35:56 -06:00
Benjamin Peterson
6150804397
handle errors without a reason attribute
2014-11-25 15:43:58 -06:00
Benjamin Peterson
2615e9e293
don't fail tests when www.python.org can't be validated by the system
2014-11-25 15:16:55 -06:00
Victor Stinner
5ef586f25a
Closes #22685 , asyncio: Set the transport of stdout and stderr StreamReader
...
objects in the SubprocessStreamProtocol. It allows to pause the transport to
not buffer too much stdout or stderr data.
2014-11-25 17:20:33 +01:00
Benjamin Peterson
43052a14c1
add context parameter to HTTPHandler ( closes #22788 )
2014-11-23 20:36:44 -06:00
Benjamin Peterson
7243b574e5
don't require OpenSSL SNI to pass hostname to ssl functions ( #22921 )
...
Patch by Donald Stufft.
2014-11-23 17:04:34 -06:00
Brett Cannon
92716777b8
Stop using a deprecated unittest.TestCase method.
2014-12-12 12:00:02 -05:00
Victor Stinner
ee2b237464
Merge 3.4 (test_selectors)
2014-12-12 12:58:45 +01:00
Victor Stinner
648b862017
Issue #22935 : Fix test_ssl when the SSLv3 protocol is not supported
2014-12-12 12:23:59 +01:00
Serhiy Storchaka
d4a001b23c
Issue #22095 : Fixed HTTPConnection.set_tunnel with default port. The port
...
value in the host header was set to "None". Patch by Demian Brecht.
2014-12-12 09:30:18 +02:00
Victor Stinner
d625a1819d
Merge 3.4 (asyncio)
2014-12-11 23:30:31 +01:00
Victor Stinner
49784f4d14
Merge 3.4 (asyncio)
2014-12-11 22:23:28 +01:00
Serhiy Storchaka
927131e050
Issue #23016 : A warning no longer produces an AttributeError when the program
...
is run with pythonw.exe.
2014-12-10 23:04:47 +02:00
Berker Peksag
5de4a3cfc5
Issue #21775 : shutil.copytree(): fix crash when copying to VFAT
...
An exception handler assumed that that OSError objects always have a
'winerror' attribute. That is not the case, so the exception handler
itself raised AttributeError when run on Linux (and, presumably, any
other non-Windows OS).
Patch by Greg Ward.
2014-12-10 02:51:36 +02:00
Berker Peksag
0a2e874eea
Issue #17554 : Print "fetching <url> ..." messages only in verbose mode.
...
Patch by Ezio Melotti.
2014-12-10 02:34:11 +02:00
Yury Selivanov
ef1e750225
inspect: Fix getsource() to load updated source of reloaded module
...
Issue #1218234 . Initial patch by Berker Peksag.
2014-12-08 16:05:34 -05:00
Yury Selivanov
b532df62b9
Issue #21740 : Support wrapped callables in pydoc. Patch by Claudiu Popa.
2014-12-08 15:00:05 -05:00
Yury Selivanov
7f98d3ecb8
selectors: Make sure EpollSelecrtor.select() works when no FD is registered.
...
Closes issue #23009 .
2014-12-08 12:22:33 -05:00
Benjamin Peterson
b46247bee5
merge 3.4 ( #22959 )
2014-12-07 13:47:34 -05:00
Antoine Pitrou
5db1bb81ff
Issue #22696 : Add function :func:`sys.is_finalizing` to know about interpreter shutdown.
2014-12-07 01:28:27 +01:00
Benjamin Peterson
22293df016
merge 3.4 ( #22935 )
2014-12-05 22:11:33 -05:00
Benjamin Peterson
7eda940e1f
merge 3.4 ( #16043 )
2014-12-05 20:36:07 -05:00
Victor Stinner
9d279b87d8
(Merge 3.4) Issue #22599 : Enhance tokenize.open() to be able to call it during
...
Python finalization.
Before the module kept a reference to the builtins module, but the module
attributes are cleared during Python finalization. Instead, keep directly a
reference to the open() function.
This enhancement is not perfect, calling tokenize.open() can still fail if
called very late during Python finalization. Usually, the function is called
by the linecache module which is called to display a traceback or emit a
warning.
2014-12-05 10:18:30 +01:00
Victor Stinner
96a4b5adfc
Merge 3.4 (asyncio)
2014-12-05 01:44:31 +01:00
Victor Stinner
d5ea5d528a
Merge 3.4 (asyncio)
2014-12-04 23:08:37 +01:00
Serhiy Storchaka
f4adbae927
Issue #14099 : ZipFile.open() no longer reopen the underlying file. Objects
...
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
2014-12-03 09:14:36 +02:00
Serhiy Storchaka
4954f9fcab
Issue #17401 : Output the closefd attribute as boolean.
2014-12-02 23:39:56 +02:00
Barry Warsaw
de010a9685
Merge 3.4.
2014-12-02 11:31:10 -05:00
Serhiy Storchaka
0b2cacb42a
Issue #20335 : bytes constructor now raises TypeError when encoding or errors
...
is specified with non-string argument. Based on patch by Renaud Blanch.
2014-12-02 09:26:14 +02:00
Antoine Pitrou
6cd5eda0dd
Fix uninitialized variable after #22676 .
2014-12-02 00:20:03 +01:00
Barry Warsaw
d32d4ae4ca
- Issue #22966 : Fix __pycache__ pyc file name clobber when pyc_compile is
...
asked to compile a source file containing multiple dots in the source file
name.
2014-12-01 17:52:43 -05:00
Serhiy Storchaka
83000a490a
Removed duplicated words in in comments and docs.
2014-12-01 18:30:14 +02:00
Serhiy Storchaka
2205da43a6
Issue #21032 . Fixed socket leak if HTTPConnection.getresponse() fails.
...
Original patch by Martin Panter.
2014-12-01 13:10:12 +02:00
Serhiy Storchaka
22a309a434
Issue #21032 : Deprecated the use of re.LOCALE flag with str patterns or
...
re.ASCII. It was newer worked.
2014-12-01 11:50:07 +02:00
Serhiy Storchaka
fb028336f9
Issue #22838 : All test_re tests now work with unittest test discovery.
2014-12-01 11:08:27 +02:00
Serhiy Storchaka
ac4aa7b6aa
Issue #22902 : The "ip" command is now used on Linux to determine MAC address
...
in uuid.getnode(). Pach by Bruno Cauet.
2014-11-30 20:39:04 +02:00
Benjamin Peterson
16e802f4ae
merge 3.4 ( #9179 )
2014-11-30 11:51:16 -05:00
Antoine Pitrou
3a9c68e608
Close issue #22895 : fix test failure introduced by the fix for issue #22462 .
2014-11-29 15:56:38 +01:00
Ned Deily
df46e2a43b
Issue #16113 : Also remove test_case_sha3_224_huge
2014-11-28 15:22:15 -08:00
Victor Stinner
73866efc34
Issue #22685 , asyncio: resume_reading() must also be called in test_pause_reading()
2014-11-28 22:42:06 +01:00
Victor Stinner
ddf3bc9078
Issue #22685 , asyncio: mock also resume_reading in test_pause_reading()
2014-11-28 22:37:16 +01:00
Berker Peksag
bb44fe0a0b
Issue #22389 : Add contextlib.redirect_stderr().
2014-11-28 23:28:06 +02:00
Victor Stinner
ae553eb794
Merge 3.4 (asyncio)
2014-11-28 18:02:16 +01:00
Victor Stinner
beeb512fe1
Issue #21356 : Make ssl.RAND_egd() optional to support LibreSSL. The
...
availability of the function is checked during the compilation.
Patch written by Bernard Spil.
2014-11-28 13:28:25 +01:00
Serhiy Storchaka
0a99b2ab61
Issue #21280 : Fixed a bug in shutil.make_archive() when create an archive of
...
current directory in current directory.
2014-11-28 00:49:50 +02:00
Serhiy Storchaka
5916d53032
Issue #22915 : SAX parser now supports files opened with file descriptor or
...
bytes path.
2014-11-27 22:14:30 +02:00
Serhiy Storchaka
f51f713f30
Issue #22609 : Revert changes in UserDict. They conflicted with existing tests.
2014-11-27 17:46:15 +02:00
Serhiy Storchaka
8943ecfab2
Issue #22609 : Constructors and update methods of mapping classes in the
...
collections module now accept the self keyword argument.
2014-11-27 16:35:26 +02:00
Ned Deily
8007cbc4d5
Issue 22940: fixes to editline support
2014-11-26 13:02:33 -08:00
Benjamin Peterson
12abc86903
merge 3.4
2014-11-26 14:36:08 -06:00
Benjamin Peterson
d1e22ba7db
only support append_history if readline has it
2014-11-26 14:35:12 -06:00
Benjamin Peterson
33f8f15bdd
add readline.append_history_file ( closes #22940 )
...
patch by "bru"
2014-11-26 13:58:16 -06:00
Benjamin Peterson
8dcaa4b1c6
merge 3.4
2014-11-25 18:05:40 -06:00
Victor Stinner
6a11e5e1ae
(Merge 3.4) Closes #22685 , asyncio: Set the transport of stdout and stderr
...
StreamReader objects in the SubprocessStreamProtocol. It allows to pause the
transport to not buffer too much stdout or stderr data.
2014-11-25 17:21:43 +01:00
Serhiy Storchaka
166ebc4e5d
Issue #19676 : Added the "namereplace" error handler.
2014-11-25 13:57:17 +02:00
Benjamin Peterson
6c22e65773
merge 3.4 ( #22788 )
2014-11-23 20:38:13 -06:00
Benjamin Peterson
f9284ae8ed
merge 3.4 ( #22921 )
2014-11-23 17:06:39 -06:00
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