]> granicus.if.org Git - python/log
python
10 years agoDon't use deprecated assertEquals.
Serhiy Storchaka [Mon, 26 Jan 2015 07:28:11 +0000 (09:28 +0200)]
Don't use deprecated assertEquals.

10 years agomerge 3.4 (#19996)
Benjamin Peterson [Mon, 26 Jan 2015 04:31:58 +0000 (23:31 -0500)]
merge 3.4 (#19996)

10 years agohandle headers with no key (closes #19996)
Benjamin Peterson [Mon, 26 Jan 2015 04:30:30 +0000 (23:30 -0500)]
handle headers with no key (closes #19996)

Patch by Cory Benfield.

10 years agoSet the hash values of dummy entries to -1. Improves quality of entry->hash == hash...
Raymond Hettinger [Mon, 26 Jan 2015 00:38:52 +0000 (16:38 -0800)]
Set the hash values of dummy entries to -1.  Improves quality of entry->hash == hash tests.

10 years agoUpdate out-of-date comments.
Raymond Hettinger [Mon, 26 Jan 2015 00:27:40 +0000 (16:27 -0800)]
Update out-of-date comments.

10 years agoIssue #23119: Simplify setobject by inlining the special case for unicode equality...
Raymond Hettinger [Mon, 26 Jan 2015 00:12:49 +0000 (16:12 -0800)]
Issue #23119:  Simplify setobject by inlining the special case for unicode equality testing.

10 years agoIssue #23321: Fixed a crash in str.decode() when error handler returned
Serhiy Storchaka [Sun, 25 Jan 2015 23:24:31 +0000 (01:24 +0200)]
Issue #23321: Fixed a crash in str.decode() when error handler returned
replacment string longer than mailformed input data.

10 years agoIssue #23321: Fixed a crash in str.decode() when error handler returned
Serhiy Storchaka [Sun, 25 Jan 2015 23:22:54 +0000 (01:22 +0200)]
Issue #23321: Fixed a crash in str.decode() when error handler returned
replacment string longer than mailformed input data.

10 years agoIssue #22286: The "backslashreplace" error handlers now works with
Serhiy Storchaka [Sun, 25 Jan 2015 20:56:57 +0000 (22:56 +0200)]
Issue #22286: The "backslashreplace" error handlers now works with
decoding and translating.

10 years agoMerge: #23215: note that time.sleep affects the current thread only.
R David Murray [Sun, 25 Jan 2015 20:47:06 +0000 (15:47 -0500)]
Merge: #23215: note that time.sleep affects the current thread only.

10 years ago#23215: reflow paragraph.
R David Murray [Sun, 25 Jan 2015 20:46:22 +0000 (15:46 -0500)]
#23215: reflow paragraph.

10 years ago#23251: Note that time.sleep affects the calling thread only.
R David Murray [Sun, 25 Jan 2015 20:45:14 +0000 (15:45 -0500)]
#23251: Note that time.sleep affects the calling thread only.

This change parallels the language used in the unix man page.

10 years agomerge from 3.4
Senthil Kumaran [Sun, 25 Jan 2015 03:26:18 +0000 (19:26 -0800)]
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.

10 years agoIncrease http.client.HTTPConnection test coverage.
Senthil Kumaran [Sun, 25 Jan 2015 03:24:59 +0000 (19:24 -0800)]
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.

10 years agoCloses #23253: Delay-load ShellExecute
Steve Dower [Sat, 24 Jan 2015 16:18:24 +0000 (08:18 -0800)]
Closes #23253: Delay-load ShellExecute

10 years agoIssue20284: Implement PEP461
Ethan Furman [Sat, 24 Jan 2015 04:05:18 +0000 (20:05 -0800)]
Issue20284: Implement PEP461

10 years agoprefer server alpn ordering over the client's
Benjamin Peterson [Fri, 23 Jan 2015 22:30:26 +0000 (17:30 -0500)]
prefer server alpn ordering over the client's

10 years agoadd support for ALPN (closes #20188)
Benjamin Peterson [Fri, 23 Jan 2015 21:35:37 +0000 (16:35 -0500)]
add support for ALPN (closes #20188)

10 years agoCloses #23305: Merged documentation fix from 3.4.
Vinay Sajip [Fri, 23 Jan 2015 21:19:53 +0000 (21:19 +0000)]
Closes #23305: Merged documentation fix from 3.4.

10 years agoIssue #23305: clarified RotatingFileHandler documentation.
Vinay Sajip [Fri, 23 Jan 2015 21:19:04 +0000 (21:19 +0000)]
Issue #23305: clarified RotatingFileHandler documentation.

10 years agoCloses #23207: logging.basicConfig() now does additional validation of its arguments.
Vinay Sajip [Fri, 23 Jan 2015 19:54:23 +0000 (19:54 +0000)]
Closes #23207: logging.basicConfig() now does additional validation of its arguments.

10 years agoIssue #23207: logging.basicConfig() now does additional validation of its arguments.
Vinay Sajip [Fri, 23 Jan 2015 19:52:21 +0000 (19:52 +0000)]
Issue #23207: logging.basicConfig() now does additional validation of its arguments.

10 years agoCloses #23202: pyvenv documentation updated to match its behavior.
Vinay Sajip [Fri, 23 Jan 2015 19:36:54 +0000 (19:36 +0000)]
Closes #23202: pyvenv documentation updated to match its behavior.

10 years agoUpdated pyvenv documentation to match its current behaviour.
Vinay Sajip [Fri, 23 Jan 2015 19:35:12 +0000 (19:35 +0000)]
Updated pyvenv documentation to match its current behaviour.

10 years agohttp.client: disable Nagle's algorithm (closes #23302)
Benjamin Peterson [Fri, 23 Jan 2015 16:02:57 +0000 (11:02 -0500)]
http.client: disable Nagle's algorithm (closes #23302)

Patch by Demian Brecht.

10 years agorevert 7b833bd1f509. I misread the side effect that the code was triggering.
Gregory P. Smith [Fri, 23 Jan 2015 06:56:06 +0000 (22:56 -0800)]
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.

10 years agorevert 7b833bd1f509. I misread the side effect that the code was triggering.
Gregory P. Smith [Fri, 23 Jan 2015 06:55:00 +0000 (22:55 -0800)]
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.

10 years agoRemove the unimplemented but ignored without='-E' parameters being passed to
Gregory P. Smith [Fri, 23 Jan 2015 06:05:00 +0000 (22:05 -0800)]
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)

10 years agoRemove the unimplemented but ignored without='-E' parameters being passed to
Gregory P. Smith [Fri, 23 Jan 2015 06:04:16 +0000 (22:04 -0800)]
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)

10 years agoOnly pass -E to the child interpreter if our interpreter was running in that
Gregory P. Smith [Fri, 23 Jan 2015 01:53:24 +0000 (17:53 -0800)]
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).

10 years agoOnly pass -E to the child interpreter if our interpreter was running in that
Gregory P. Smith [Fri, 23 Jan 2015 01:33:28 +0000 (17:33 -0800)]
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).

10 years agoMerge 3.4 (asyncio)
Victor Stinner [Thu, 22 Jan 2015 22:50:34 +0000 (23:50 +0100)]
Merge 3.4 (asyncio)

10 years agoasyncio, Tulip issue 204: Fix IocpProactor.accept_pipe()
Victor Stinner [Thu, 22 Jan 2015 22:50:03 +0000 (23:50 +0100)]
asyncio, Tulip issue 204: Fix IocpProactor.accept_pipe()

Overlapped.ConnectNamedPipe() now returns a boolean: True if the pipe is
connected (if ConnectNamedPipe() failed with ERROR_PIPE_CONNECTED), False if
the connection is in progress.

This change removes multiple hacks in IocpProactor.

10 years agoBreak up TestCommandLine.test_env_var into four distinct tests.
Gregory P. Smith [Thu, 22 Jan 2015 22:38:26 +0000 (14:38 -0800)]
Break up TestCommandLine.test_env_var into four distinct tests.

10 years agoBreak up TestCommandLine.test_env_var into four distinct tests.
Gregory P. Smith [Thu, 22 Jan 2015 22:38:00 +0000 (14:38 -0800)]
Break up TestCommandLine.test_env_var into four distinct tests.

10 years agoMerge 3.4 (asyncio)
Victor Stinner [Thu, 22 Jan 2015 21:55:31 +0000 (22:55 +0100)]
Merge 3.4 (asyncio)

10 years agoIssue #23293, asyncio: Rewrite IocpProactor.connect_pipe()
Victor Stinner [Thu, 22 Jan 2015 21:55:08 +0000 (22:55 +0100)]
Issue #23293, asyncio: Rewrite IocpProactor.connect_pipe()

Add _overlapped.ConnectPipe() which tries to connect to the pipe for
asynchronous I/O (overlapped): call CreateFile() in a loop until it doesn't
fail with ERROR_PIPE_BUSY. Use an increasing delay between 1 ms and 100 ms.

Remove Overlapped.WaitNamedPipeAndConnect() which is no more used.

10 years agoasyncio: IocpProactor.close() doesn't cancel anymore futures which are already
Victor Stinner [Thu, 22 Jan 2015 21:47:13 +0000 (22:47 +0100)]
asyncio: IocpProactor.close() doesn't cancel anymore futures which are already
cancelled

10 years agoNull merge 3.4
Victor Stinner [Thu, 22 Jan 2015 08:35:32 +0000 (09:35 +0100)]
Null merge 3.4

10 years agoIssue #23009: Add missing "import sys" in test_selectors
Victor Stinner [Thu, 22 Jan 2015 08:35:23 +0000 (09:35 +0100)]
Issue #23009: Add missing "import sys" in test_selectors

10 years agoMerge 3.4
Victor Stinner [Thu, 22 Jan 2015 08:09:24 +0000 (09:09 +0100)]
Merge 3.4

10 years agoIssue #23009: Skip test_selectors.test_empty_select() on Windows
Victor Stinner [Thu, 22 Jan 2015 08:07:36 +0000 (09:07 +0100)]
Issue #23009: Skip test_selectors.test_empty_select() on Windows

10 years agoMerge 3.4 (asyncio)
Victor Stinner [Wed, 21 Jan 2015 23:18:11 +0000 (00:18 +0100)]
Merge 3.4 (asyncio)

10 years agoIssue #23095, asyncio: IocpProactor.close() must not cancel pending
Victor Stinner [Wed, 21 Jan 2015 23:17:54 +0000 (00:17 +0100)]
Issue #23095, asyncio: IocpProactor.close() must not cancel pending
_WaitCancelFuture futures

10 years agoasyncio: BaseEventLoop._create_connection_transport() catchs any exception, not
Victor Stinner [Wed, 21 Jan 2015 23:17:41 +0000 (00:17 +0100)]
asyncio: BaseEventLoop._create_connection_transport() catchs any exception, not
only Exception

10 years agoMerge 3.4 (asyncio)
Victor Stinner [Wed, 21 Jan 2015 22:40:19 +0000 (23:40 +0100)]
Merge 3.4 (asyncio)

10 years agoIssue #23095, asyncio: Rewrite _WaitHandleFuture.cancel()
Victor Stinner [Wed, 21 Jan 2015 22:39:51 +0000 (23:39 +0100)]
Issue #23095, asyncio: Rewrite _WaitHandleFuture.cancel()

This change fixes a race conditon related to _WaitHandleFuture.cancel() leading
to Python crash or "GetQueuedCompletionStatus() returned an unexpected event"
logs. Before, the overlapped object was destroyed too early, it was possible
that the wait completed whereas the overlapped object was already destroyed.
Sometimes, a different overlapped was allocated at the same address, leading to
unexpected completition.

_WaitHandleFuture.cancel() now waits until the wait is cancelled to clear its
reference to the overlapped object. To wait until the cancellation is done,
UnregisterWaitEx() is used with an event instead of UnregisterWait().

To wait for this event, a new _WaitCancelFuture class was added. It's a
simplified version of _WaitCancelFuture. For example, its cancel() method calls
UnregisterWait(), not UnregisterWaitEx(). _WaitCancelFuture should not be
cancelled.

The overlapped object is kept alive in _WaitHandleFuture until the wait is
unregistered.

Other changes:

* Add _overlapped.UnregisterWaitEx()
* Remove fast-path in IocpProactor.wait_for_handle() to immediatly set the
  result if the wait already completed. I'm not sure that it's safe to
  call immediatly UnregisterWaitEx() before the completion was signaled.
* Add IocpProactor._unregistered() to forget an overlapped which may never be
  signaled, but may be signaled for the next loop iteration. It avoids to
  block forever IocpProactor.close() if a wait was cancelled, and it may also
  avoid some "... unexpected event ..." warnings.

10 years agoasyncio: pyflakes, remove unused import
Victor Stinner [Wed, 21 Jan 2015 22:39:16 +0000 (23:39 +0100)]
asyncio: pyflakes, remove unused import

tests: Remove unused function; inline another function

10 years agoasyncio: Enhance BaseProactorEventLoop._loop_self_reading()
Victor Stinner [Wed, 21 Jan 2015 22:38:37 +0000 (23:38 +0100)]
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.

10 years agoAdd the command line to the AssertionError raised by test.script_helper's
Gregory P. Smith [Wed, 21 Jan 2015 01:21:41 +0000 (17:21 -0800)]
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. :)

10 years agoAdd the command line to the AssertionError raised by test.script_helper's
Gregory P. Smith [Wed, 21 Jan 2015 01:19:47 +0000 (17:19 -0800)]
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. :)

10 years agoMerge with 3.4 (closes #23280)
Zachary Ware [Tue, 20 Jan 2015 20:11:38 +0000 (14:11 -0600)]
Merge with 3.4 (closes #23280)

10 years agoIssue #23280: Fix docstrings for binascii.(un)hexlify
Zachary Ware [Tue, 20 Jan 2015 19:59:46 +0000 (13:59 -0600)]
Issue #23280: Fix docstrings for binascii.(un)hexlify

10 years agoIssue #20898: Enum names are only available in the http.client module as constants.
Berker Peksag [Tue, 20 Jan 2015 06:02:28 +0000 (08:02 +0200)]
Issue #20898: Enum names are only available in the http.client module as constants.

Noticed by Martin Panter.

10 years agoIssue #22317: Document the action parameter in ArgumentParser.add_subparsers() docs.
Berker Peksag [Tue, 20 Jan 2015 04:46:49 +0000 (06:46 +0200)]
Issue #22317: Document the action parameter in ArgumentParser.add_subparsers() docs.

Patch by Mike Short.

10 years agoIssue #22317: Document the action parameter in ArgumentParser.add_subparsers() docs.
Berker Peksag [Tue, 20 Jan 2015 04:45:53 +0000 (06:45 +0200)]
Issue #22317: Document the action parameter in ArgumentParser.add_subparsers() docs.

Patch by Mike Short.

10 years agoIssue #20898: Add a "HTTP status codes" section to avoid duplication in HTTP docs.
Berker Peksag [Tue, 20 Jan 2015 04:30:46 +0000 (06:30 +0200)]
Issue #20898: Add a "HTTP status codes" section to avoid duplication in HTTP docs.

This commit also removes a couple of non-standard status codes. They were
added as part of edf669b13482, so there is no backwards compatibility issue.

Patch by Demian Brecht.

10 years agoA hybrid of and-masking and a conditional-set-to-zero produce even faster search...
Raymond Hettinger [Mon, 19 Jan 2015 05:25:15 +0000 (21:25 -0800)]
A hybrid of and-masking and a conditional-set-to-zero produce even faster search loop.

10 years agoUpdate copyright for 2015 updates.
Raymond Hettinger [Mon, 19 Jan 2015 00:10:30 +0000 (16:10 -0800)]
Update copyright for 2015 updates.

10 years agoClean-up, simplify, and slightly speed-up bounds logic in set_pop().
Raymond Hettinger [Mon, 19 Jan 2015 00:06:18 +0000 (16:06 -0800)]
Clean-up, simplify, and slightly speed-up bounds logic in set_pop().

Elsewhere in the setobject.c code we do a bitwise-and with the mask
instead of using a conditional to reset to zero on wrap-around.
Using that same technique here use gives cleaner, faster, and more
consistent code.

10 years agoIssue #23266: Restore the performance of ipaddress.collapse_addresses() whith
Serhiy Storchaka [Sun, 18 Jan 2015 22:41:32 +0000 (00:41 +0200)]
Issue #23266: Restore the performance of ipaddress.collapse_addresses() whith
duplicated addresses and simplify the code.

10 years agoIssue 23261: Clean-up the hack to store the set.pop() search finger in a hash field...
Raymond Hettinger [Sun, 18 Jan 2015 21:12:42 +0000 (13:12 -0800)]
Issue 23261:  Clean-up the hack to store the set.pop() search finger in a hash field instead of the setobject.

10 years agoFixed tests for issue #23133 (pickling of IPv4Network was not tested).
Serhiy Storchaka [Sun, 18 Jan 2015 20:56:47 +0000 (22:56 +0200)]
Fixed tests for issue #23133 (pickling of IPv4Network was not tested).

10 years agoIssue #23133: Pickling of ipaddress objects now produces more compact and
Serhiy Storchaka [Sun, 18 Jan 2015 20:36:33 +0000 (22:36 +0200)]
Issue #23133: Pickling of ipaddress objects now produces more compact and
portable representation.

10 years agoIssue #23248: Update ssl error codes from latest OpenSSL git master.
Antoine Pitrou [Sun, 18 Jan 2015 16:40:17 +0000 (17:40 +0100)]
Issue #23248: Update ssl error codes from latest OpenSSL git master.

10 years agoIssue #23248: Update ssl error codes from latest OpenSSL git master.
Antoine Pitrou [Sun, 18 Jan 2015 16:39:32 +0000 (17:39 +0100)]
Issue #23248: Update ssl error codes from latest OpenSSL git master.

10 years agoIssue #23266: Much faster implementation of ipaddress.collapse_addresses() when there...
Antoine Pitrou [Sun, 18 Jan 2015 15:22:47 +0000 (16:22 +0100)]
Issue #23266: Much faster implementation of ipaddress.collapse_addresses() when there are many non-consecutive addresses.

10 years agoIssue #23181: More "codepoint" -> "code point".
Serhiy Storchaka [Sun, 18 Jan 2015 09:33:31 +0000 (11:33 +0200)]
Issue #23181: More "codepoint" -> "code point".

10 years agoIssue #23181: More "codepoint" -> "code point".
Serhiy Storchaka [Sun, 18 Jan 2015 09:28:37 +0000 (11:28 +0200)]
Issue #23181: More "codepoint" -> "code point".

10 years agoIssue #23098: 64-bit dev_t is now supported in the os module.
Serhiy Storchaka [Sun, 18 Jan 2015 09:17:39 +0000 (11:17 +0200)]
Issue #23098: 64-bit dev_t is now supported in the os module.

10 years agoIssue #23098: 64-bit dev_t is now supported in the os module.
Serhiy Storchaka [Sun, 18 Jan 2015 09:12:11 +0000 (11:12 +0200)]
Issue #23098: 64-bit dev_t is now supported in the os module.

10 years agoIssue #23180: merge from 3.4
Ned Deily [Sun, 18 Jan 2015 05:09:16 +0000 (21:09 -0800)]
Issue #23180: merge from 3.4

10 years agoIssue #23180: Rename IDLE "Windows" menu item to "Window".
Ned Deily [Sun, 18 Jan 2015 05:06:27 +0000 (21:06 -0800)]
Issue #23180: Rename IDLE "Windows" menu item to "Window".
Patch by Al Sweigart.

10 years agoIssue #23211: null merge
Ned Deily [Sun, 18 Jan 2015 01:33:49 +0000 (17:33 -0800)]
Issue #23211: null merge

10 years agoIssue #23211: Fix patch for 3.4 differences.
Ned Deily [Sun, 18 Jan 2015 01:31:13 +0000 (17:31 -0800)]
Issue #23211: Fix patch for 3.4 differences.

10 years agoIssue #23211: merge from 3.4
Ned Deily [Sun, 18 Jan 2015 00:59:50 +0000 (16:59 -0800)]
Issue #23211: merge from 3.4

10 years agoIssue #23211: Workaround test_logging failure on some OS X 10.6 systems:
Ned Deily [Sun, 18 Jan 2015 00:57:19 +0000 (16:57 -0800)]
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.

10 years agoUpdated copyright year (after my patch from last year reverted it)
Steve Dower [Sat, 17 Jan 2015 22:29:01 +0000 (14:29 -0800)]
Updated copyright year (after my patch from last year reverted it)

10 years agoIssue #21817: When an exception is raised in a task submitted to a ProcessPoolExecuto...
Antoine Pitrou [Sat, 17 Jan 2015 19:02:14 +0000 (20:02 +0100)]
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.

10 years agoIssue #15955: Add an option to limit output size when decompressing LZMA data.
Antoine Pitrou [Sat, 17 Jan 2015 15:22:18 +0000 (16:22 +0100)]
Issue #15955: Add an option to limit output size when decompressing LZMA data.
Patch by Nikolaus Rath and Martin Panter.

10 years agoMerge with 3.4 (#23256)
Zachary Ware [Sat, 17 Jan 2015 14:53:09 +0000 (08:53 -0600)]
Merge with 3.4 (#23256)

10 years agoCloses #23256: Avoid a crash in test_ctypes
Zachary Ware [Sat, 17 Jan 2015 14:50:42 +0000 (08:50 -0600)]
Closes #23256: Avoid a crash in test_ctypes

Only happened with oddly capitalized debug executables on Windows.
Patch by Claudiu Popa.

10 years agomerge 3.4 (#22986)
Benjamin Peterson [Sat, 17 Jan 2015 01:46:37 +0000 (20:46 -0500)]
merge 3.4 (#22986)

10 years agocapitialize "HttpOnly" and "Secure" as they appear in the standard and other impls...
Benjamin Peterson [Sat, 17 Jan 2015 01:43:55 +0000 (20:43 -0500)]
capitialize "HttpOnly" and "Secure" as they appear in the standard and other impls (closes #23250)

Patch by Jon Dufresne.

10 years agoMerge 3.4 (asyncio)
Victor Stinner [Thu, 15 Jan 2015 21:53:21 +0000 (22:53 +0100)]
Merge 3.4 (asyncio)

10 years agoIssue #22685: Fix test_pause_reading() of asyncio/test_subprocess
Victor Stinner [Thu, 15 Jan 2015 21:52:59 +0000 (22:52 +0100)]
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.

10 years agoMerge 3.4 (asyncio)
Victor Stinner [Thu, 15 Jan 2015 20:50:48 +0000 (21:50 +0100)]
Merge 3.4 (asyncio)

10 years agoBackout changeset 6ab2575bc12b
Victor Stinner [Thu, 15 Jan 2015 20:50:19 +0000 (21:50 +0100)]
Backout changeset 6ab2575bc12b

StreamWriter: close() now clears the reference to the transport

StreamWriter now raises an exception if it is closed: write(), writelines(),
write_eof(), can_write_eof(), get_extra_info(), drain().

10 years agoNull merge from 3.4
Steve Dower [Thu, 15 Jan 2015 17:17:18 +0000 (09:17 -0800)]
Null merge from 3.4

10 years agoCloses #23160: Respect the environment variable SVNROOT in external-common.bat (patch...
Steve Dower [Thu, 15 Jan 2015 17:16:38 +0000 (09:16 -0800)]
Closes #23160: Respect the environment variable SVNROOT in external-common.bat (patch by anselm.kruis)

10 years agoIssue 23018: Add version info to python[w].exe
Steve Dower [Thu, 15 Jan 2015 17:10:43 +0000 (09:10 -0800)]
Issue 23018: Add version info to python[w].exe

10 years agoFixes sys.winver generation and removes dependency on user32.dll
Steve Dower [Thu, 15 Jan 2015 17:10:16 +0000 (09:10 -0800)]
Fixes sys.winver generation and removes dependency on user32.dll

10 years agoMerge 3.4 (asyncio)
Victor Stinner [Thu, 15 Jan 2015 15:29:23 +0000 (16:29 +0100)]
Merge 3.4 (asyncio)

10 years agoCloses #23219: cancelling asyncio.wait_for() now cancels the task
Victor Stinner [Thu, 15 Jan 2015 15:29:10 +0000 (16:29 +0100)]
Closes #23219: cancelling asyncio.wait_for() now cancels the task

10 years agoMerge 3.4 (asyncio)
Victor Stinner [Thu, 15 Jan 2015 13:25:08 +0000 (14:25 +0100)]
Merge 3.4 (asyncio)

10 years agoasyncio: Close transports in tests
Victor Stinner [Thu, 15 Jan 2015 13:24:55 +0000 (14:24 +0100)]
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

10 years agoasyncio: Close the transport on subprocess creation failure
Victor Stinner [Thu, 15 Jan 2015 13:24:22 +0000 (14:24 +0100)]
asyncio: Close the transport on subprocess creation failure

10 years agoMerge 3.4 (asyncio)
Victor Stinner [Thu, 15 Jan 2015 12:41:01 +0000 (13:41 +0100)]
Merge 3.4 (asyncio)

10 years agoasyncio: Fix _ProactorBasePipeTransport.close()
Victor Stinner [Thu, 15 Jan 2015 12:40:27 +0000 (13:40 +0100)]
asyncio: Fix _ProactorBasePipeTransport.close()

Set the _read_fut attribute to None after cancelling it.

This change should fix a race condition with
_ProactorWritePipeTransport._pipe_closed().

10 years agoasyncio: Fix _ProactorBasePipeTransport.__repr__()
Victor Stinner [Thu, 15 Jan 2015 12:32:28 +0000 (13:32 +0100)]
asyncio: Fix _ProactorBasePipeTransport.__repr__()

Check if the _sock attribute is None to check if the transport is closed.