]> granicus.if.org Git - python/log
python
7 years ago[3.6] bpo-31416: Fix assertion failures in case of a bad warnings.filters or warnings...
Serhiy Storchaka [Tue, 12 Sep 2017 06:48:27 +0000 (09:48 +0300)]
[3.6] bpo-31416: Fix assertion failures in case of a bad warnings.filters or warnings.defaultaction. (GH-3496) (#3509)

Patch by Oren Milman..
(cherry picked from commit 9d984fd2b097c8c29479d1c3eb740995fe1ccb0d)

7 years ago[3.6] bpo-31373: remove overly strict float range checks (GH-3486) (#3495)
Benjamin Peterson [Tue, 12 Sep 2017 06:08:49 +0000 (23:08 -0700)]
[3.6] bpo-31373: remove overly strict float range checks (GH-3486) (#3495)

This undoes a853a8ba7850381d49b284295dd6f0dc491dbe44 except for the pytime.c
parts. We want to continue to allow IEEE 754 doubles larger than FLT_MAX to be
rounded into finite floats. Tests were added to very this behavior.
(cherry picked from commit 2bb69a5b4e7f96cb35d1b28aa7b7b3974b351f59)

7 years ago[3.6] bpo-30928: Update idlelib/NEWS.txt to 2017-09-11. (GH-3503) (#3504)
Miss Islington (bot) [Mon, 11 Sep 2017 21:50:40 +0000 (14:50 -0700)]
[3.6] bpo-30928: Update idlelib/NEWS.txt to 2017-09-11. (GH-3503) (#3504)

(cherry picked from commit 8239fd704637d7cbf59273883fbe487fc0f568fc)

7 years ago[3.6] bpo-31414: IDLE -- fix tk entry box tests by deleting first. (GH-3501) (#3502)
Miss Islington (bot) [Mon, 11 Sep 2017 20:34:11 +0000 (13:34 -0700)]
[3.6] bpo-31414: IDLE -- fix tk entry box tests by deleting first. (GH-3501) (#3502)

Adding to an int entry is not the same as deleting and inserting
because int('') will fail.
(cherry picked from commit 667522efa8fedfb57fd89d7335d7dfd270f274d5)

7 years ago[3.6] bpo-31411: Prevent raising a SystemError in case warnings.onceregistry is not...
Serhiy Storchaka [Mon, 11 Sep 2017 07:01:47 +0000 (10:01 +0300)]
[3.6] bpo-31411: Prevent raising a SystemError in case warnings.onceregistry is not a dictionary. (GH-3485). (#3494)

(cherry picked from commit 252033d50effa08046ac34fcc406bc99796ab88b)

7 years ago[3.6] bpo-29526: Add reference to help('FORMATTING') in format() builtin (GH-166...
Serhiy Storchaka [Mon, 11 Sep 2017 06:26:15 +0000 (09:26 +0300)]
[3.6] bpo-29526: Add reference to help('FORMATTING') in format() builtin (GH-166). (#3491)

(cherry picked from commit 2e6bb4484ee1b0da67d1dfcf0816c58602daa5a0)

7 years ago[3.6] bpo-30781: IDLE: Fix help button on configdialog (GH-3238) (#3489)
Miss Islington (bot) [Mon, 11 Sep 2017 03:19:35 +0000 (20:19 -0700)]
[3.6] bpo-30781: IDLE: Fix help button on configdialog (GH-3238) (#3489)

This fixes an omission in the ttk conversion patch for this issue, hence no new news.
Patch by Cheryl Sabella.
(cherry picked from commit 3866d9bbcf808cea98b3d00007f9f246b83858ce)

7 years agoBackport docstring improvements to OrderedDict. (GH-3470)
Henk-Jaap Wagenaar [Mon, 11 Sep 2017 01:11:18 +0000 (02:11 +0100)]
Backport docstring improvements to OrderedDict. (GH-3470)

7 years ago[3.6] bpo-27099: IDLE - Convert built-in extensions to regular features (GH-2494...
Terry Jan Reedy [Mon, 11 Sep 2017 00:30:46 +0000 (20:30 -0400)]
[3.6] bpo-27099: IDLE - Convert built-in extensions to regular features (GH-2494) (#3487)

About 10 IDLE features were implemented as supposedly optional
extensions.  Their different behavior could be confusing or worse for
users and not good for maintenance.  Hence the conversion.

The main difference for users is that user configurable key bindings
for builtin features are now handled uniformly.  Now, editing a binding
in a keyset only affects its value in the keyset.  All bindings are
defined together in the system-specific default keysets in config-
extensions.def.  All custom keysets are saved as a whole in config-
extension.cfg.  All take effect as soon as one clicks Apply or Ok.

The affected events are '<<force-open-completions>>', '<<expand-word>>',
'<<force-open-calltip>>', '<<flash-paren>>', '<<format-paragraph>>',
'<<run-module>>', '<<check-module>>', and '<<zoom-height>>'.  Any
(global) customizations made before 3.6.3 will not affect their keyset-
specific customization after 3.6.3. and vice versa.

Inital patch by Charles Wohlganger, revised by Terry Jan Reedy.
(cherry picked from commit 58fc71c)

7 years agobpo-29136: Fix versionchange for TLS 1.3 changes (#3483)
Christian Heimes [Sun, 10 Sep 2017 19:14:34 +0000 (21:14 +0200)]
bpo-29136: Fix versionchange for TLS 1.3 changes (#3483)

Thanks Arfrever!

Signed-off-by: Christian Heimes <christian@python.org>
7 years ago[3.6] bpo-31406: Fix crash due to lack of type checking in subclassing. (GH-3477...
Miss Islington (bot) [Sun, 10 Sep 2017 16:46:49 +0000 (09:46 -0700)]
[3.6] bpo-31406: Fix crash due to lack of type checking in subclassing. (GH-3477) (#3479)

(cherry picked from commit 3cedf46cdbeefc019f4a672c1104f3d5e94712bd)

7 years ago[3.6] Improve IncrementalEncoder documentation (GH-2746) (GH-3475)
Miss Islington (bot) [Sun, 10 Sep 2017 13:26:42 +0000 (06:26 -0700)]
[3.6] Improve IncrementalEncoder documentation (GH-2746) (GH-3475)

getstate and setstate are instance methods, same as encode and reset.
(cherry picked from commit 30644dee0c14af6c1c61d44166a97cec8245300b)

7 years ago[3.6] Clarify nature of parse_args 'args' argument. (GH-3292) (GH-3325)
R. David Murray [Sun, 10 Sep 2017 05:54:05 +0000 (01:54 -0400)]
[3.6] Clarify nature of parse_args 'args' argument. (GH-3292) (GH-3325)

Patch by Paul.j3.  Includes an unrelated but useful addition to the
optparse porting section.
(cherry picked from commit 0c7983e4adf9604d0ac93757a45d14be06c27696)

7 years ago[3.6] Make `json.dumps()` example to be PEP-8 compliant. (GH-3472) (GH-3473)
Miss Islington (bot) [Sat, 9 Sep 2017 17:26:49 +0000 (10:26 -0700)]
[3.6] Make `json.dumps()` example to be PEP-8 compliant. (GH-3472) (GH-3473)

(cherry picked from commit a7fbad96c8631070c1db137635d5bdd5e2aaac50)

7 years ago[3.6] bpo-31400: Improve SSL error handling on Windows (GH-3463) (#3466)
Christian Heimes [Sat, 9 Sep 2017 15:22:11 +0000 (08:22 -0700)]
[3.6] bpo-31400: Improve SSL error handling on Windows (GH-3463) (#3466)

* bpo-31392: Improve SSL error handling on Windows

* Remove unnecessary Windows mention in NEWS.
(cherry picked from commit e6eb48c10dc389d1d70657593de6a6cb3087d3d1)

7 years ago[3.6] bpo-26669: Fix nan arg value error in pytime.c (GH-3085) (GH-3467)
Miss Islington (bot) [Sat, 9 Sep 2017 04:53:04 +0000 (21:53 -0700)]
[3.6] bpo-26669: Fix nan arg value error in pytime.c (GH-3085) (GH-3467)

* Modify NaN check function and error message
* Fix pytime.c when arg is nan
* fix whitespace
(cherry picked from commit 829dacce4fca60fc3c3367980e75e21dfcdbe6be)

7 years ago[3.6] bpo-30822: Deduplicate ZoneInfoTest classes in test_datetime. (GH-2534) (#3405)
Miss Islington (bot) [Fri, 8 Sep 2017 22:44:33 +0000 (15:44 -0700)]
[3.6] bpo-30822: Deduplicate ZoneInfoTest classes in test_datetime. (GH-2534) (#3405)

(cherry picked from commit 34b54873b51a1ebee2a3c57b7205537b4f33128d)

7 years ago[3.6] Fixes reference leak (GH-3457) (#3460)
Miss Islington (bot) [Fri, 8 Sep 2017 21:26:27 +0000 (14:26 -0700)]
[3.6] Fixes reference leak (GH-3457) (#3460)

(cherry picked from commit af8d6b90723daa943c5cd0a38ee7564790d8687a)

7 years ago[3.6] bpo-31393: Fix the use of PyUnicode_READY(). (GH-3451). (#3453)
Serhiy Storchaka [Fri, 8 Sep 2017 07:43:54 +0000 (10:43 +0300)]
[3.6] bpo-31393: Fix the use of PyUnicode_READY(). (GH-3451). (#3453)

(cherry picked from commit e3b2b4b8d9e751b49e3550cb83ba39b54fdc377c)

7 years ago[3.6] bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3 (GH-1363) (#3444)
Christian Heimes [Fri, 8 Sep 2017 03:23:52 +0000 (20:23 -0700)]
[3.6] bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3 (GH-1363) (#3444)

* bpo-29136: Add TLS 1.3 support

TLS 1.3 introduces a new, distinct set of cipher suites. The TLS 1.3
cipher suites don't overlap with cipher suites from TLS 1.2 and earlier.
Since Python sets its own set of permitted ciphers, TLS 1.3 handshake
will fail as soon as OpenSSL 1.1.1 is released. Let's enable the common
AES-GCM and ChaCha20 suites.

Additionally the flag OP_NO_TLSv1_3 is added. It defaults to 0 (no op) with
OpenSSL prior to 1.1.1. This allows applications to opt-out from TLS 1.3
now.

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit cb5b68abdeb1b1d56c581d5b4d647018703d61e3)

7 years ago[3.6] bpo-30640: Fix undefined behavior in _PyFunction_FastCallDict() and PyEval_Eval...
Zackery Spytz [Fri, 8 Sep 2017 01:17:38 +0000 (19:17 -0600)]
[3.6] bpo-30640: Fix undefined behavior in _PyFunction_FastCallDict() and PyEval_EvalCodeEx() (GH-2919) (#2964)

k + 1 was calculated with k = NULL..
(cherry picked from commit c6ea8974e2d939223bfd6d64ee13ec89c090d2e0)

7 years ago[3.6] bpo-31036: Allow sphinx and blurb to be found automatically (GH-3440) (#3441)
Miss Islington (bot) [Fri, 8 Sep 2017 00:38:31 +0000 (17:38 -0700)]
[3.6] bpo-31036: Allow sphinx and blurb to be found automatically (GH-3440) (#3441)

Rather than requiring the path to blurb and/or sphinx-build to be specified to the make rule, enhance the Doc/Makefile to look for each first in a virtual environment created by make venv and, if not found, look on the normal process PATH. This allows the Doc/Makefile to take advantage of an installed spinx-build or blurb and, thus, do the right thing most of the time. Also, make the directory for the venv be configurable and document the `make venv` target.
(cherry picked from commit 590665c399fc4aa3c4a9f8e7104d43a02e9f3a0c)

7 years ago[3.6] bpo-27340: Use memoryview in SSLSocket.sendall() (GH-3384) (#3434)
Christian Heimes [Thu, 7 Sep 2017 23:59:17 +0000 (16:59 -0700)]
[3.6] bpo-27340: Use memoryview in SSLSocket.sendall() (GH-3384) (#3434)

* bpo-27340: Use memoryview in SSLSocket.sendall()

SSLSocket.sendall() now uses memoryview to create slices of data. This fix
support for all bytes-like object. It is also more efficient and avoids
costly copies.

Signed-off-by: Christian Heimes <christian@python.org>
* Cast view to bytes, fix typo

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 888bbdc192ec4db888a294ef758cf5510442dc9a)

7 years ago[3.6] bpo-28958: Improve SSLContext error reporting. (GH-3414) (#3432)
Christian Heimes [Thu, 7 Sep 2017 23:45:39 +0000 (16:45 -0700)]
[3.6] bpo-28958: Improve SSLContext error reporting. (GH-3414) (#3432)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 17c9ac9)

7 years ago[3.6] bpo-22635: Update the getstatusoutput docstring. (GH-3435) (#3439)
Miss Islington (bot) [Thu, 7 Sep 2017 23:44:58 +0000 (16:44 -0700)]
[3.6] bpo-22635: Update the getstatusoutput docstring. (GH-3435) (#3439)

To match the documentation updates already made.
Also renames the local variable used within to match
what it actually holds.
(cherry picked from commit 2eb0cb4787d02d995a9bb6dc075983792c12835c)

7 years ago[3.6] bpo-31294: Fix ZeroMQSocketListener and ZeroMQSocketHandler examples (GH-3229...
Miss Islington (bot) [Thu, 7 Sep 2017 21:27:44 +0000 (14:27 -0700)]
[3.6] bpo-31294: Fix ZeroMQSocketListener and ZeroMQSocketHandler examples (GH-3229) (#3430)

* Fix ZeroMQSocketListener and ZeroMQSocketHandler examples

* Use send_json and recv_json to simplify pyzmq interfacing

* Add News entry
(cherry picked from commit 586c0502b5eb9a39cabe0bc2707a8ff63114265c)

7 years ago[3.6] bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. ...
Miss Islington (bot) [Thu, 7 Sep 2017 21:18:45 +0000 (14:18 -0700)]
[3.6] bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. (GH-3272) (GH-3429)

Also provide a solution if the user wants to keep multiple blank lines.
(cherry picked from commit 397c467c49385023de36411194d381ac993bae1a)

7 years ago[3.6] bpo-30389 Adds detection of VS 2017 to distutils._msvccompiler GH-1632 (#3425)
Steve Dower [Thu, 7 Sep 2017 20:58:07 +0000 (13:58 -0700)]
[3.6] bpo-30389 Adds detection of VS 2017 to distutils._msvccompiler GH-1632 (#3425)

7 years ago[3.6] fixes bpo-31373: fix undefined floating-point demotions (GH-3396) (#3424)
Miss Islington (bot) [Thu, 7 Sep 2017 18:35:03 +0000 (11:35 -0700)]
[3.6] fixes bpo-31373: fix undefined floating-point demotions (GH-3396) (#3424)

(cherry picked from commit a853a8ba7850381d49b284295dd6f0dc491dbe44)

7 years ago[3.6] bpo-30096: Use ABC in abc reference examples (GH-1220) (GH-3408)
Miss Islington (bot) [Thu, 7 Sep 2017 18:32:07 +0000 (11:32 -0700)]
[3.6] bpo-30096: Use ABC in abc reference examples (GH-1220) (GH-3408)

Use base class rather than metaclass in examples.
(cherry picked from commit 122e88a8354e3f75aeaf6211232dac88ac296d54)

7 years ago[3.6] Update multissl test helper (GH-3349) (#3415)
Christian Heimes [Thu, 7 Sep 2017 17:12:03 +0000 (10:12 -0700)]
[3.6] Update multissl test helper (GH-3349) (#3415)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit d3b9f97)

7 years agoAdd props file for nuget packages (#3410) (#3413)
Steve Dower [Thu, 7 Sep 2017 03:41:32 +0000 (20:41 -0700)]
Add props file for nuget packages (#3410) (#3413)

7 years agoLink to generated changelog, not website.
Ned Deily [Thu, 7 Sep 2017 03:07:43 +0000 (20:07 -0700)]
Link to generated changelog, not website.

7 years ago[3.6] bpo-22635: subprocess.getstatusoutput doc update. (GH-3398) (#3411)
Miss Islington (bot) [Thu, 7 Sep 2017 02:57:52 +0000 (19:57 -0700)]
[3.6] bpo-22635: subprocess.getstatusoutput doc update. (GH-3398) (#3411)

The `subprocess.getstatusoutput` API was inadvertently changed
in Python 3.3.4.  Document the change, it is too late to undo the
API change now as it has shipped in many stable releases.
(cherry picked from commit 738b7d9766e1a794aaaabfba0d515a467ba833ca)

7 years agobpo-30465: Fix lineno and col_offset in fstring AST nodes (GH-1800) (gh-3409)
Miss Islington (bot) [Thu, 7 Sep 2017 02:43:04 +0000 (19:43 -0700)]
bpo-30465: Fix lineno and col_offset in fstring AST nodes (GH-1800) (gh-3409)

For f-string ast nodes, fix the line and columns so that tools such as flake8 can identify them correctly.
(cherry picked from commit e7c566caf177afe43b57f0b2723e723d880368e8)

7 years ago[3.6] Update `make patchcheck` for blurb and NEWS.d (GH-3406)
Miss Islington (bot) [Thu, 7 Sep 2017 00:38:51 +0000 (17:38 -0700)]
[3.6] Update `make patchcheck` for blurb and NEWS.d (GH-3406)

(cherry picked from commit 1ba9469e9fdff0c52ba19b1e13a9c4b7235fc9eb)

7 years ago[3.6] bpo-21649: Add RFC 7525 and Mozilla server side TLS (GH-3387) (GH-3399)
Miss Islington (bot) [Thu, 7 Sep 2017 00:31:30 +0000 (17:31 -0700)]
[3.6] bpo-21649: Add RFC 7525 and Mozilla server side TLS (GH-3387) (GH-3399)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit ad0ffa033ea79f7c7cb14b1b1cc10888ea9e9913)

7 years ago[3.6] bpo-30824: Add mimetype for .json (GH-3048) (#3401)
Miss Islington (bot) [Thu, 7 Sep 2017 00:04:14 +0000 (17:04 -0700)]
[3.6] bpo-30824: Add mimetype for .json (GH-3048) (#3401)

(cherry picked from commit 8204b903683f9e0f037ccfaa87622716019914d7)

7 years ago[3.6] bpo-31340: Change to building with MSVC v141 (included with Visual Studio 2017...
Steve Dower [Wed, 6 Sep 2017 22:55:25 +0000 (15:55 -0700)]
[3.6] bpo-31340: Change to building with MSVC v141 (included with Visual Studio 2017) (GH-3311) (#3386)

7 years ago[3.6] Fixes Tix build by correcting the directories used by Tcl and Tk. (GH-3391...
Miss Islington (bot) [Wed, 6 Sep 2017 22:00:26 +0000 (15:00 -0700)]
[3.6] Fixes Tix build by correcting the directories used by Tcl and Tk. (GH-3391) (#3392)

7 years ago[3.6] bpo-30737: Update DevGuide links to new URL (GH-3228) (GH-3390)
Miss Islington (bot) [Wed, 6 Sep 2017 21:29:04 +0000 (14:29 -0700)]
[3.6] bpo-30737: Update DevGuide links to new URL (GH-3228) (GH-3390)

Update old devguide links from https://docs.python.org/devguide to https://devguide.python.org
(cherry picked from commit 384899dfaeb83db38a6d3846d3cbc2f58a6605cd)

7 years ago[3.6] bpo-31178: Avoid concatenating bytes with str in subprocess error (GH-3066...
Gregory P. Smith [Wed, 6 Sep 2017 20:34:17 +0000 (13:34 -0700)]
[3.6] bpo-31178: Avoid concatenating bytes with str in subprocess error (GH-3066) (#3388)

Avoid concatenating bytes with str in the typically rare subprocess error path (exec failed). Includes a mock based unittest to exercise the codepath.
(cherry picked from commit 3fc499bca18454b9f432b9b0106cab662bfeb549)

7 years ago[3.6] Stop test_xmlrpc from writing to sys.stderr (GH-3359) (#3380)
Miss Islington (bot) [Wed, 6 Sep 2017 17:22:14 +0000 (10:22 -0700)]
[3.6] Stop test_xmlrpc from writing to sys.stderr (GH-3359) (#3380)

One test case of test_xmlrpc uses HTTPServer with a subclass of
BaseHTTPRequestHandler. The BaseRequestHandler class logs to
sys.stderr by default. Override log_message() to not clobber
test output.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 3463ee3972e0d14351ee18bce60ecfbf7ac96772)

7 years ago[3.6] bpo-29781: Fix SSLObject.version before handshake (GH-3364) (#3381)
Christian Heimes [Wed, 6 Sep 2017 13:42:30 +0000 (06:42 -0700)]
[3.6] bpo-29781: Fix SSLObject.version before handshake (GH-3364) (#3381)

SSLObject.version() now correctly returns None when handshake over BIO has
not been performed yet.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 6877111)

7 years ago[3.6] _pickle: Fix whichmodule() (GH-3358) (#3361)
Christian Heimes [Wed, 6 Sep 2017 04:43:19 +0000 (21:43 -0700)]
[3.6] _pickle: Fix whichmodule() (GH-3358) (#3361)

_PyUnicode_FromId() can return NULL: replace Py_INCREF() with
Py_XINCREF().

Fix coverity report: CID 1417269.
(cherry picked from commit af46eb8)

7 years agobpo-31350: Optimize get_event_loop and _get_running_loop (GH-3347) (GH-3373)
Miss Islington (bot) [Wed, 6 Sep 2017 03:05:35 +0000 (20:05 -0700)]
bpo-31350: Optimize get_event_loop and _get_running_loop (GH-3347) (GH-3373)

* call remove_done_callback in finally section

* Optimize get_event_loop and _get_running_loop

* rename _loop_pid as loop_pid and add blurb news

* rename _loop_pid as loop_pid and add blurb news

* add back _RunningLoop

* Update 2017-09-05-10-30-48.bpo-31350.dXJ-7N.rst

* Update 2017-09-05-10-30-48.bpo-31350.dXJ-7N.rst
(cherry picked from commit 80bbe6a7b67f33d0d0976bb8e3e5ba26b6b0e626)

7 years agobpo-31355: Travis CI: remove the macOS job (#3367)
Victor Stinner [Wed, 6 Sep 2017 00:57:14 +0000 (02:57 +0200)]
bpo-31355: Travis CI: remove the macOS job (#3367)

7 years ago[3.6] bpo-30662: fixed OrderedDict.__init__ docstring re PEP 468 (GH-2179) (GH-3370)
Mariatta [Wed, 6 Sep 2017 01:13:07 +0000 (18:13 -0700)]
[3.6] bpo-30662: fixed OrderedDict.__init__ docstring re PEP 468 (GH-2179) (GH-3370)

* fixed OrderedDict.__init__ docstring re PEP 468

* tightened comment and mirrored to C impl

* added space after period per marco-buttu

* preserved substituted for stable

* drop references to Python 3.6 and PEP 468
(cherry picked from commit faa57cbe7074b26807cd7ed89a7b173b5cbf3086)

7 years ago[3.6] bpo-31320: No traceback to sys.stderr in test_ssl (GH-3360) (GH-3369)
Miss Islington (bot) [Wed, 6 Sep 2017 01:11:31 +0000 (18:11 -0700)]
[3.6] bpo-31320: No traceback to sys.stderr in test_ssl (GH-3360) (GH-3369)

In case PROTOCOL_TLS_SERVER is used for both client context and server
context, the test thread dies with OSError. Catch OSError to avoid
traceback on sys.stderr

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 305e56c27afce605e5d2f71903a966cf0bb95038)

7 years ago[3.6] Cache externals, depending on changes to PCbuild (GH-3308) (#3366)
Zachary Ware [Wed, 6 Sep 2017 01:01:33 +0000 (18:01 -0700)]
[3.6] Cache externals, depending on changes to PCbuild (GH-3308) (#3366)

(cherry picked from commit f801322e92384ef3eac2a9b7ac2c49d37102d0f3)

7 years ago[3.6] link to legacy doc on the non-legacy website (GH-3362) (#3368)
Benjamin Peterson [Wed, 6 Sep 2017 00:45:11 +0000 (17:45 -0700)]
[3.6] link to legacy doc on the non-legacy website (GH-3362) (#3368)

(cherry picked from commit 60dbed18509f99af8eaa685d9736f954b8d621fb)

7 years agobpo-30442: Skips refcount test in test_xml_etree under coverage (#1767) (#3363)
Victor Stinner [Wed, 6 Sep 2017 00:10:08 +0000 (02:10 +0200)]
bpo-30442: Skips refcount test in test_xml_etree under coverage (#1767) (#3363)

(cherry picked from commit 1de4705d00168afa8c5b6741af02e21fc609af58)

7 years agobpo-31170: Update libexpat from 2.2.3 to 2.2.4 (#3315) (#3350)
Victor Stinner [Tue, 5 Sep 2017 23:30:22 +0000 (01:30 +0200)]
bpo-31170: Update libexpat from 2.2.3 to 2.2.4 (#3315) (#3350)

* bpo-31170: Update libexpat from 2.2.3 to 2.2.4

Fix copying of partial characters for UTF-8 input (libexpat bug 115):
https://github.com/libexpat/libexpat/issues/115

* Add NEWS entry.

(cherry picked from commit 759e30ec47048cb9835c62aaeac48748c8151390)

7 years agobpo-30445: Allow appended output in RecursionError message (#3356)
Victor Stinner [Tue, 5 Sep 2017 23:07:44 +0000 (01:07 +0200)]
bpo-30445: Allow appended output in RecursionError message (#3356)

Running under coverage sometimes causes 'in comparison' to be added to the end of the RecursionError message, which is acceptable.

Patched by Maria Mckinley

(cherry picked from commit 3480ef9dd3177be8c0d71a74853dca6e5b11fbe1)

7 years ago[3.6] bpo-29334: Fix ssl.getpeercert for auto-handshake (GH-1769) (#1778)
Christian Heimes [Tue, 5 Sep 2017 20:43:05 +0000 (13:43 -0700)]
[3.6] bpo-29334: Fix ssl.getpeercert for auto-handshake (GH-1769) (#1778)

Drop handshake_done and peer_cert members from PySSLSocket struct. The
peer certificate can be acquired from *SSL directly.
SSL_get_peer_certificate() does not trigger any network activity.
Instead of manually tracking the handshake state, simply use
SSL_is_init_finished().

In combination these changes fix auto-handshake for non-blocking
MemoryBIO connections.

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 66dc33b6822be93f85d84d24d3f9159ff568fbbb)

7 years ago[3.6] bpo-30502: Fix handling of long oids in ssl. (GH-2909) (#3321)
Christian Heimes [Tue, 5 Sep 2017 17:13:03 +0000 (19:13 +0200)]
[3.6] bpo-30502: Fix handling of long oids in ssl. (GH-2909) (#3321)

(cherry picked from commit e503ca52889bf66ac502702569e726caa7970299)

7 years ago[3.6] bpo-30102: Call OPENSSL_add_all_algorithms_noconf (GH-3112) (#3342)
Christian Heimes [Tue, 5 Sep 2017 15:12:03 +0000 (17:12 +0200)]
[3.6] bpo-30102: Call OPENSSL_add_all_algorithms_noconf (GH-3112) (#3342)

The ssl and hashlib modules now call OPENSSL_add_all_algorithms_noconf() on
OpenSSL < 1.1.0. The function detects CPU features and enables optimizations
on some CPU architectures such as POWER8. Patch is based on research from
Gustavo Serra Scalet.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit c941e62)

7 years ago[3.6] bpo-31343: Include sys/sysmacros.h (GH-3318) (#3344)
Christian Heimes [Tue, 5 Sep 2017 15:09:12 +0000 (17:09 +0200)]
[3.6] bpo-31343: Include sys/sysmacros.h (GH-3318) (#3344)

Include sys/sysmacros.h for major(), minor(), and makedev(). GNU C libray
plans to remove the functions from sys/types.h.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 75b9618)

7 years ago[3.6] Travis: use ccache (GH-3307) (#3332)
Christian Heimes [Tue, 5 Sep 2017 14:03:29 +0000 (16:03 +0200)]
[3.6] Travis: use ccache (GH-3307) (#3332)

(cherry picked from commit 8adc73c)

7 years ago[3.6] bpo-30622: Change NPN detection: (GH-2079) (#3314)
Christian Heimes [Tue, 5 Sep 2017 14:00:44 +0000 (16:00 +0200)]
[3.6] bpo-30622: Change NPN detection: (GH-2079) (#3314)

* Change NPN detection:

Version breakdown, support disabled (pre-patch/post-patch):
- pre-1.0.1: OPENSSL_NPN_NEGOTIATED will not be defined -> False/False
- 1.0.1 and 1.0.2: OPENSSL_NPN_NEGOTIATED will not be defined ->
False/False
- 1.1.0+: OPENSSL_NPN_NEGOTIATED will be defined and
OPENSSL_NO_NEXTPROTONEG will be defined -> True/False

Version breakdown support enabled (pre-patch/post-patch):
- pre-1.0.1: OPENSSL_NPN_NEGOTIATED will not be defined -> False/False
- 1.0.1 and 1.0.2: OPENSSL_NPN_NEGOTIATED will be defined and
OPENSSL_NO_NEXTPROTONEG will not be defined -> True/True
- 1.1.0+: OPENSSL_NPN_NEGOTIATED will be defined and
OPENSSL_NO_NEXTPROTONEG will not be defined -> True/True

* Refine NPN guard:

- If NPN is disabled, but ALPN is available we need our callback
- Make clinic's ssl behave the same way

This created a working ssl module for me, with NPN disabled and ALPN
enabled for OpenSSL 1.1.0f.

Concerns to address:
The initial commit for NPN support into OpenSSL [1], had the
OPENSSL_NPN_* variables defined inside the OPENSSL_NO_NEXTPROTONEG
guard. The question is if that ever made it into a release.
This would need an ugly hack, something like:

GH-if defined(OPENSSL_NO_NEXTPROTONEG) && \
!defined(OPENSSL_NPN_NEGOTIATED)
GH- define OPENSSL_NPN_UNSUPPORTED 0
GH- define OPENSSL_NPN_NEGOTIATED 1
GH- define OPENSSL_NPN_NO_OVERLAP 2
GH-endif

[1] https://github.com/openssl/openssl/commit/68b33cc5c7
(cherry picked from commit b2d096b)

7 years agoInclude additional changes to support blurbified NEWS (#3340)
Ned Deily [Tue, 5 Sep 2017 07:10:31 +0000 (00:10 -0700)]
Include additional changes to support blurbified NEWS (#3340)

7 years agoSimplify NEWS entry to prevent suspicious warnings. (#3339)
Ned Deily [Tue, 5 Sep 2017 06:23:04 +0000 (23:23 -0700)]
Simplify NEWS entry to prevent suspicious warnings. (#3339)

7 years agoFix malformed handcrafted blurb filename. (#3327)
larryhastings [Tue, 5 Sep 2017 05:27:31 +0000 (22:27 -0700)]
Fix malformed handcrafted blurb filename. (#3327)

7 years agoRename my manually mis-named NEWS.d file. #sorry (#3326)
Gregory P. Smith [Mon, 4 Sep 2017 23:38:23 +0000 (16:38 -0700)]
Rename my manually mis-named NEWS.d file. #sorry (#3326)

7 years ago[3.6] Added effect of re.ASCII and reworded slightly (GH-1782) (#3313)
Gregory P. Smith [Mon, 4 Sep 2017 21:58:31 +0000 (14:58 -0700)]
[3.6] Added effect of re.ASCII and reworded slightly (GH-1782) (#3313)

(cherry picked from commit c9d6dbc2900ace9564b8f67e63617be747355c6b)

7 years agobpo-22536 [3.6] Set filename in FileNotFoundError (#3305)
Gregory P. Smith [Mon, 4 Sep 2017 21:23:23 +0000 (14:23 -0700)]
bpo-22536 [3.6] Set filename in FileNotFoundError  (#3305)

* [3.6] bpo-22536: Set the filename in FileNotFoundError. (GH-3194)

Have the subprocess module set the filename in the FileNotFoundError
exception raised on POSIX systems when the executable or cwd are missing.
(cherry picked from commit 8621bb5d93239316f97281826461b85072ff6db7)

* bpo-22536 [3.6] (GH-3202) skip non-windows tests.

7 years ago[3.6] remote note about IRIX in aifc (#3304)
Benjamin Peterson [Mon, 4 Sep 2017 20:58:23 +0000 (13:58 -0700)]
[3.6] remote note about IRIX in aifc (#3304)

This comment hasn't been true since Python 3.0.
(cherry picked from commit b84efddb9a87d515029bac943812b66eb3486eb5)

7 years ago[3.6] bpo-25674: remove sha256.tbs-internet.com ssl test (GH-3297) (#3300)
Christian Heimes [Mon, 4 Sep 2017 20:54:47 +0000 (22:54 +0200)]
[3.6] bpo-25674: remove sha256.tbs-internet.com ssl test (GH-3297) (#3300)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 002d64039b60c1a9289f981fe73a5cf91d082136)

7 years agoBlurbify 3.6. (#3287)
larryhastings [Mon, 4 Sep 2017 19:03:25 +0000 (12:03 -0700)]
Blurbify 3.6. (#3287)

Blurbify 3.6.

7 years ago[3.6] Add missing _sha3 module to Setup.dist (GH-2395) (#3280)
Segev Finer [Mon, 4 Sep 2017 17:08:35 +0000 (20:08 +0300)]
[3.6] Add missing _sha3 module to Setup.dist (GH-2395) (#3280)

(cherry picked from commit 1c1f8f30c03ca119528)

7 years agobpo-31095: fix potential crash during GC (GH-3195)
INADA Naoki [Mon, 4 Sep 2017 03:31:09 +0000 (12:31 +0900)]
bpo-31095: fix potential crash during GC (GH-3195)

(cherry picked from commit a6296d34a478b4f697ea9db798146195075d496c)

7 years ago[3.6] bpo-29212: Fix the ugly repr() ThreadPoolExecutor thread name. (GH-2315) (...
Gregory P. Smith [Sun, 3 Sep 2017 21:52:20 +0000 (14:52 -0700)]
[3.6] bpo-29212: Fix the ugly repr() ThreadPoolExecutor thread name. (GH-2315) (#3276)

bpo-29212: Fix the ugly ThreadPoolExecutor thread name.

Fixes the newly introduced ugly default thread name for concurrent.futures
thread.ThreadPoolExecutor threads.  They'll now resemble the old <=3.5
threading default Thread-x names by being named ThreadPoolExecutor-y_n..
(cherry picked from commit a3d91b43c2851312fb942f31afa12f5961706db6)

7 years ago[3.6] bpo-9146: Raise a ValueError if OpenSSL fails to init a hash func (#3274)
Gregory P. Smith [Sun, 3 Sep 2017 21:35:19 +0000 (14:35 -0700)]
[3.6] bpo-9146: Raise a ValueError if OpenSSL fails to init a hash func (#3274)

* [3.6] bpo-9146: Raise a ValueError if OpenSSL fails to init a hash func. (GH-1777)

This helps people in weird FIPS mode environments where common things
like MD5 are not available in the binary as a matter of policy.
(cherry picked from commit 07244a83014fad42da937c17d98474b47a570bf7)

* Include a NEWS entry.

7 years ago[3.6] Fix a typo in the Programming FAQ. (GH-3230) (#3273)
Gregory P. Smith [Sun, 3 Sep 2017 20:29:34 +0000 (13:29 -0700)]
[3.6] Fix a typo in the Programming FAQ. (GH-3230) (#3273)

subobjects, not subobjecs.
(cherry picked from commit e9d978fd1bc122395efc91a82b16b2c4b968441d)

7 years ago[3.6] Fix a c.f.as_completed() refleak previously introduced in bpo-27144 (GH-3270...
Antoine Pitrou [Sun, 3 Sep 2017 13:30:55 +0000 (15:30 +0200)]
[3.6] Fix a c.f.as_completed() refleak previously introduced in bpo-27144 (GH-3270) (#3271)

(cherry picked from commit 2ef3760)

7 years agobpo-31185: Fixed miscellaneous errors in asyncio speedup module. (#3076) (#3269)
Serhiy Storchaka [Sun, 3 Sep 2017 06:24:32 +0000 (09:24 +0300)]
bpo-31185: Fixed miscellaneous errors in asyncio speedup module. (#3076) (#3269)

(cherry picked from commit bca4939d806170c3ca5d05f23710d11a8f1669cf)

7 years agobpo-30581: Windows: os.cpu_count() returns wrong number of processors (#2934) (#3267)
Christopher Wilcox [Fri, 1 Sep 2017 19:28:47 +0000 (15:28 -0400)]
bpo-30581: Windows: os.cpu_count() returns wrong number of processors (#2934) (#3267)

* Fixes #30581 by adding a path to use newer GetMaximumProcessorCount API on Windows calls to os.cpu_count()

* Add NEWS.d entry for bpo-30581, os.cpu_count on Windows.

* Tweak NEWS entry

7 years ago[3.6] bpo-27144: concurrent.futures as_complete and map iterators do not keep referen...
Antoine Pitrou [Fri, 1 Sep 2017 17:16:46 +0000 (19:16 +0200)]
[3.6] bpo-27144: concurrent.futures as_complete and map iterators do not keep reference to returned object (GH-1560) (#3266)

bpo-27144: concurrent.futures as_complie and map iterators do not keep
reference to returned object

(cherry picked from commit 97e1b1c81458d2109b2ffed32ffa1eb643a6c3b9)

7 years agobpo-31217: Fix regrtest -R for small integer (#3260) (#3261)
Victor Stinner [Fri, 1 Sep 2017 13:04:47 +0000 (15:04 +0200)]
bpo-31217: Fix regrtest -R for small integer (#3260) (#3261)

Use a pool of integer objects toprevent false alarm when checking for
memory block leaks. Fill the pool with values in -1000..1000 which
are the most common (reference, memory block, file descriptor)
differences.

Co-Authored-By: Antoine Pitrou <pitrou@free.fr>
(cherry picked from commit 6c2feabc5dac2f3049b15134669e9ad5af573193)

7 years agobpo-31249: Fix ref cycle in ThreadPoolExecutor (#3253)
Victor Stinner [Fri, 1 Sep 2017 12:46:44 +0000 (14:46 +0200)]
bpo-31249: Fix ref cycle in ThreadPoolExecutor (#3253)

[3.6] bpo-31249: Fix ref cycle in ThreadPoolExecutor

7 years ago[3.6] Fix the indentation in Extending Python code example (GH-3244) (GH-3250)
Mariatta [Thu, 31 Aug 2017 06:11:02 +0000 (23:11 -0700)]
[3.6] Fix the indentation in Extending Python code example (GH-3244) (GH-3250)

Code was indented with three spaces.
Fixed using four spaces.
(cherry picked from commit d9a2b99ac45b5529d2a6227b0d529397be831dab)

7 years ago[3.6] bpo-31291: Fixed an assertion failure in zipimport.zipimporter.get_data() ...
Oren Milman [Wed, 30 Aug 2017 11:08:39 +0000 (14:08 +0300)]
[3.6] bpo-31291: Fixed an assertion failure in zipimport.zipimporter.get_data() (GH-3226) (#3243)

if pathname.replace('/', '\\') returns non-string.
(cherry picked from commit 631fdee6e61b4ba8ce800f827fecdd536bfb04f3)

7 years ago[3.6] bpo-10746: Fix ctypes PEP 3118 type codes for c_long, c_bool, c_int (GH-31...
Pauli Virtanen [Wed, 30 Aug 2017 09:40:05 +0000 (11:40 +0200)]
[3.6] bpo-10746: Fix ctypes PEP 3118 type codes for c_long, c_bool, c_int (GH-31) (#3241)

Ctypes currently produces wrong pep3118 type codes for several types.
E.g. memoryview(ctypes.c_long()).format gives "<l" on 64-bit platforms,
but it should be "<q" instead for sizeof(c_long) == 8

The problem is that the '<>' endian specification in the struct syntax
also turns on the "standard size" mode, which makes type characters have
a platform-independent meaning, which does not match with the codes used
internally in ctypes.  The struct module format syntax also does not
allow specifying native-size non-native-endian items.

This commit adds a converter function that maps the internal ctypes
codes to appropriate struct module standard-size codes in the pep3118
format strings. The tests are modified to check for this.
(cherry picked from commit 07f1658aa09f6798793c473c72b2951b7fefe220)

7 years ago[3.6] bpo-31051: Rearrange IDLE condigdialog GenPage into Window, Editor, and Help...
Terry Jan Reedy [Wed, 30 Aug 2017 06:47:24 +0000 (02:47 -0400)]
[3.6] bpo-31051:  Rearrange IDLE condigdialog GenPage into Window, Editor, and Help sections. (GH-3239) (#3240)

(cherry picked from commit 390ead)

7 years ago[3.6] bpo-31243: Fixed PyArg_ParseTuple failure checks. (GH-3171) (#3233)
Oren Milman [Tue, 29 Aug 2017 12:43:32 +0000 (15:43 +0300)]
[3.6] bpo-31243: Fixed PyArg_ParseTuple failure checks. (GH-3171) (#3233)

(cherry picked from commit ba7d7365215d791025d1efd25393c91404f2cfc8)

7 years ago[3.6] bpo-26656: Improve re.compile documentation (GH-3211) (GH-3225)
Mariatta [Mon, 28 Aug 2017 05:50:08 +0000 (22:50 -0700)]
[3.6] bpo-26656: Improve re.compile documentation (GH-3211) (GH-3225)

- Link to the regular expressions object documentation
- Clarify that it can be used with more than the two methods currently stated.
(cherry picked from commit ed94a8b2851914bcda3a77b28b25517b8baa91e6)

7 years ago[3.6] bpo-30617: IDLE: docstrings and unittest for outwin.py (GH-2046) (#3223)
Terry Jan Reedy [Sun, 27 Aug 2017 22:29:24 +0000 (18:29 -0400)]
[3.6] bpo-30617: IDLE: docstrings and unittest for outwin.py (GH-2046) (#3223)

Move some data and functions from the class to module level. Patch by Cheryl Sabella.
(cherry picked from commit 998f496)

7 years agobpo-31191: Improve grammar in threading.Barrier docs (GH-3080) (GH-3224)
Mariatta [Sun, 27 Aug 2017 22:19:08 +0000 (15:19 -0700)]
bpo-31191: Improve grammar in threading.Barrier docs (GH-3080) (GH-3224)

(cherry picked from commit 143be366295038b36fc32c44b8e1b48a375eab56)

7 years ago[3.6] bpo-31287: IDLE - do not alter tkinter.messagebox in configdialog tests. (GH...
Terry Jan Reedy [Sun, 27 Aug 2017 21:14:19 +0000 (17:14 -0400)]
[3.6] bpo-31287: IDLE - do not alter tkinter.messagebox in configdialog tests. (GH-3220) (#3221)

(cherry picked from commit 3457f42)

7 years ago[3.6] bpo-30781: IDLE - use ttk widgets in configdialog (GH-2654) (#3214)
Terry Jan Reedy [Sat, 26 Aug 2017 20:12:14 +0000 (16:12 -0400)]
[3.6] bpo-30781: IDLE -  use ttk widgets in configdialog (GH-2654) (#3214)

Patch by Cheryl Sabella.
(cherry picked from commit 7028e59)

7 years ago[3.6] bpo-31271: Fix an assertion failure in io.TextIOWrapper.write. (GH-3201) (...
Oren Milman [Sat, 26 Aug 2017 17:29:40 +0000 (20:29 +0300)]
[3.6] bpo-31271: Fix an assertion failure in io.TextIOWrapper.write. (GH-3201) (#3209)

(cherry picked from commit a5b4ea15b61e3f3985f4f0748a18f8b888a63532)

7 years ago[3.6] bpo-28261: Prevent raising SystemError where PyArg_ParseTuple is used to parse...
Oren Milman [Sat, 26 Aug 2017 12:27:50 +0000 (15:27 +0300)]
[3.6] bpo-28261: Prevent raising SystemError where PyArg_ParseTuple is used to parse non-args. (#3210)

7 years agobpo-28667: Fix a compile warning on FreeBSD when compare with FD_SETSIZE. (#501)...
Victor Stinner [Tue, 22 Aug 2017 22:58:43 +0000 (00:58 +0200)]
bpo-28667: Fix a compile warning on FreeBSD when compare with FD_SETSIZE. (#501) (#3190)

FreeBSD is the only platforms with unsigned FD_SETSIZE.

(cherry picked from commit 783d0c1a1c723733adcdf4249240246fc35a5bcb)

7 years ago[3.6] bpo-30983: [gdb] Fix py-bt, etc. for non-debug shared builds (GH-3153) (#3192)
Łukasz Langa [Tue, 22 Aug 2017 20:20:40 +0000 (13:20 -0700)]
[3.6] bpo-30983: [gdb] Fix py-bt, etc. for non-debug shared builds (GH-3153) (#3192)

PEP 523 introduced _PyEval_EvalFrameDefault which inlines PyEval_EvalFrameEx on
non-debug shared builds.  This breaks the ability to use py-bt, py-up, and
a few other Python-specific gdb integrations.

This patch fixes the problem by only looking for _PyEval_EvalFrameDefault
frames.

test_gdb passes on both a debug and a non-debug build.

Original patch by Bruno "Polaco" Penteado.
(cherry picked from commit 5fe59f8e3a0a56a155c18f9d581205ec533764b6)

7 years agobpo-31161: only check for parens error for SyntaxError (#3083)
Martijn Pieters [Tue, 22 Aug 2017 20:11:09 +0000 (21:11 +0100)]
bpo-31161: only check for parens error for SyntaxError (#3083)

Subclasses such as IndentError and TabError should not have this message
applied.

7 years agobpo-31259: test_urllib2_localnet uses addCleanup(server.stop) (#3186)
Victor Stinner [Tue, 22 Aug 2017 16:03:38 +0000 (18:03 +0200)]
bpo-31259: test_urllib2_localnet uses addCleanup(server.stop) (#3186)

Use self.addCleanup(self.server.stop) to stop the HTTP server. Some
tests didn't stop the server like test_https().

Fix also the usage of support.threading_cleanup().

7 years agobpo-31234: fork_wait tests now join threads (#3139) (#3187)
Victor Stinner [Tue, 22 Aug 2017 16:03:03 +0000 (18:03 +0200)]
bpo-31234: fork_wait tests now join threads (#3139) (#3187)

fork_wait.py tests now joins threads, to not leak running threads in
the background.

(cherry picked from commit c99d41f9c0304fcf06550515c3db55f93a629e9e)

7 years ago[3.6] bpo-30871: Add test.pythoninfo (#3174)
Victor Stinner [Mon, 21 Aug 2017 22:17:15 +0000 (00:17 +0200)]
[3.6] bpo-30871: Add test.pythoninfo (#3174)

* bpo-30871: Add test.pythoninfo (#3075)

* Add Lib/test/pythoninfo.py: script collecting various informations
  about Python to help debugging test failures.
* regrtest: remove sys.hash_info and sys.flags from header.
* Travis CI, Appveyor: run pythoninfo before tests
(cherry picked from commit b907abc88589f7bea52c5afe172ececc6edcda70)

* bpo-30871: pythoninfo: add expat and _decimal (#3121)

* bpo-30871: pythoninfo: add expat and _decimal

* Remove _decimal.__version__

The string is hardcoded, not really interesting.

(cherry picked from commit f6ebd838f00b4c211c72d85ee49749e910cd3afe)

* bpo-30871: Add "make pythoninfo" (#3120)

(cherry picked from commit a3a01a2fceab2188b282ab9911f79c99a4c32273)

* bpo-30871: pythoninfo: more sys, os, time data (#3130)

* bpo-30871: pythoninfo: more sys, os, time data

PythonInfo now converts types other than intger to string by default.

* fix typo

(cherry picked from commit ad7eaed54382b346784e51a6f0122ce81e8842b5)

* bpo-31231: Fix pythoninfo in Travis config (#3134)

bpo-31231, bpo-30871: Replace "./python -m test.pythoninfo" with
"make pythoninfo", since macOS uses ./python.exe.
(cherry picked from commit 92b1f90143286385c0ff5be98d3721b90580a912)

7 years ago[3.6] bpo-30121: Fix debug assert in subprocess on Windows (#1224) (#3173)
Victor Stinner [Mon, 21 Aug 2017 22:15:23 +0000 (00:15 +0200)]
[3.6] bpo-30121: Fix debug assert in subprocess on Windows (#1224) (#3173)

* bpo-30121: Fix debug assert in subprocess on Windows (#1224)

* bpo-30121: Fix debug assert in subprocess on Windows

This is caused by closing HANDLEs using os.close which is for CRT file
descriptors and not for HANDLEs.

* bpo-30121: Suppress debug assertion in test_subprocess when ran directly

(cherry picked from commit 4d3851727fb82195e4995c6064b0b2d6cbc031c4)

* Add test_subprocess.test_nonexisting_with_pipes() (#3133)

bpo-30121: Test the Popen failure when Popen was created with pipes.
Create also NONEXISTING_CMD variable in test_subprocess.py.
(cherry picked from commit 9a83f651f31b47b3f6c8b210f7807b26e8c373a5)

7 years agobpo-31247: xmlrpc.server: break reference cycle (#3166) (#3168)
Victor Stinner [Mon, 21 Aug 2017 16:35:04 +0000 (18:35 +0200)]
bpo-31247: xmlrpc.server: break reference cycle (#3166) (#3168)

xmlrpc.server now explicitly breaks reference cycles when using
sys.exc_info() in code handling exceptions.
(cherry picked from commit 84524454d0ba77d299741c47bd0f5841ac3f66ce)