]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Fri, 21 Dec 2018 22:04:18 +0000 (14:04 -0800)]
Enable signing Windows builds with SHA1 environment variable (GH-11279)
(cherry picked from commit
d3bbc5241363d5fa4e749fe509c97c12501ae966 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Fri, 21 Dec 2018 18:22:17 +0000 (10:22 -0800)]
[3.7] Removed dangling `since Python` at the end of library/xml.rst. (GH-11201) (GH-11231)
(cherry picked from commit
82d73554e4764350bfd8f13957c5e024ac95c4af )
Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
Miss Islington (bot) [Fri, 21 Dec 2018 15:41:01 +0000 (07:41 -0800)]
bpo-33830: Fix an example in http.client docs for 404. (GH-7780)
(cherry picked from commit
f0af4c54e32d963e1ccbac005bcbcab1913e051f )
Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
Miss Islington (bot) [Thu, 20 Dec 2018 21:39:35 +0000 (13:39 -0800)]
bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)
(cherry picked from commit
3e8f962e63c2f929604443531a9a3aced242f3e8 )
Co-authored-by: Arthur Neufeld <aneufeld@seinesoftware.ca>
Myles Borins [Thu, 20 Dec 2018 20:26:02 +0000 (15:26 -0500)]
[3.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10977)
(cherry picked from commit
0854b92cd2 )
Miss Islington (bot) [Thu, 20 Dec 2018 17:27:12 +0000 (09:27 -0800)]
bpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file (GH-11224)
(cherry picked from commit
afe17a7bee1bcb39dc56f2949431204918568ac1 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Thu, 20 Dec 2018 16:23:57 +0000 (08:23 -0800)]
Fix mock_open docstring to use readline (GH-11266)
(cherry picked from commit
71f82a2f2085464f5ec99c16bce57bd1631733bd )
Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
Victor Stinner [Thu, 20 Dec 2018 15:03:01 +0000 (16:03 +0100)]
bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11264)
When compiling 3rd party C extensions, the linker flags used by the
compiler for the interpreter and the stdlib modules, will get
leaked into distutils. In order to avoid that, the PY_CORE_LDFLAGS
and PY_LDFLAGS_NODIST are introduced to keep those flags separated.
(cherry picked from commit
cf10a750f4b50b6775719cfb17bee00bc3a9c60b )
Miss Islington (bot) [Thu, 20 Dec 2018 11:25:06 +0000 (03:25 -0800)]
bpo-35521: Add more cross-refs to IDLE docs (GH-11257)
Format menu and preferences.
(cherry picked from commit
292cd6e33104d9f458232a14998fe5c62f7f7e81 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 20 Dec 2018 08:47:59 +0000 (00:47 -0800)]
bpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229)
"dll" would leak if an error occurred in _validate_paramflags() or
GenericPyCData_new().
(cherry picked from commit
d77d97c9a1f593fe161afab97e2a3e2292ab88b9 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Thu, 20 Dec 2018 07:52:57 +0000 (23:52 -0800)]
bpo-5438: Update memory requirements and optimize test_bigmem.py. (GH-11123)
(cherry picked from commit
b13a20f50789e153c18ed8efb4fbc5eecc50f2cd )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 20 Dec 2018 07:43:22 +0000 (23:43 -0800)]
bpo-18085: Update refcounts.dat. (GH-11247)
Fixed some errors in refcounts.dat, remove functions removed in
Python 3, and add more entries for documented functions. This will
add several automatically generated notes about return values.
(cherry picked from commit
83dd4e87a62311cfea5fdd37e8a945b6b07bccee )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Terry Jan Reedy [Thu, 20 Dec 2018 07:12:08 +0000 (02:12 -0500)]
[3.7] bpo-34162: Update idlelib/NEWS.txt to 2018-12-20 (GH-11255) (#11256)
Cherry-picked from
87ec110 .
Miss Islington (bot) [Thu, 20 Dec 2018 05:59:22 +0000 (21:59 -0800)]
bpo-35521: IDLE: Add code context section to docs (GH-11205)
Also add some internal cross-references.
(cherry picked from commit
01421bec1e0d25df17599cfa1160adbbcd08e949 )
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Miss Islington (bot) [Wed, 19 Dec 2018 20:03:20 +0000 (12:03 -0800)]
bpo-32077: Update refcounts.dat for Unicode object functions. (GH-11243)
Makes the documentation more comprehensive in terms of indicating
whether or not a function returns a new reference.
Also fixes some errors and adds missing functions.
(cherry picked from commit
b2f642ccd2f65d2f3bf77bbaa103dd2bc2733734 )
Co-authored-by: Mat M <mathew1800@gmail.com>
Miss Islington (bot) [Wed, 19 Dec 2018 13:43:29 +0000 (05:43 -0800)]
Fix documented signatures for C API functions. (GH-11236)
(cherry picked from commit
57dd79e6f7f33bb4e6817ac58c9cb91de99675e0 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 19 Dec 2018 12:05:48 +0000 (04:05 -0800)]
bpo-35497: add versionadded tag for EPOLLEXCLUSIVE (GH-11162)
(cherry picked from commit
92330c0b6d6c253c41a133cc50caea4853c7e311 )
Co-authored-by: Manjusaka <lizheao940510@gmail.com>
Julien Palard [Wed, 19 Dec 2018 10:14:55 +0000 (11:14 +0100)]
bpo-35472: Doc: For Python 3.7 Sphinx 1.6.6 is enough. (GH-11192)
Miss Islington (bot) [Wed, 19 Dec 2018 09:46:23 +0000 (01:46 -0800)]
bpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196)
(cherry picked from commit
fae95874b729dfe62a7a40625f8717aed20b0fca )
Co-authored-by: Vajrasky Kok <sky.kok@speaklikeaking.com>
Serhiy Storchaka [Wed, 19 Dec 2018 07:28:12 +0000 (09:28 +0200)]
[3.7] bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174). (GH-11232)
(cherry picked from commit
2b57c43f21f891df4c6f2294a3b9e1b9029a16b6 )
Miss Islington (bot) [Tue, 18 Dec 2018 23:43:27 +0000 (15:43 -0800)]
bpo-35424: Fix test_multiprocessing_main_handling (GH-11223) (GH-11227)
Fix test_multiprocessing_main_handling: use multiprocessing.Pool with
a context manager and then explicitly join the pool.
(cherry picked from commit
6cdce3ddef805e11d75142f3e20e23c3fe21fdf4 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Tue, 18 Dec 2018 23:10:47 +0000 (15:10 -0800)]
bpo-31731: Fix test_io.check_interrupted_write() (GH-11225)
Fix a race condition in check_interrupted_write() of test_io:
create directly the thread with SIGALRM signal blocked,
rather than blocking the signal later from the thread. Previously, it
was possible that the thread gets the signal before the signal is
blocked.
(cherry picked from commit
05c9d31eb62cc45dc3c55a5cdb7cbc713d0421db )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Tue, 18 Dec 2018 21:52:37 +0000 (13:52 -0800)]
bpo-35465: Document _UnixSelectorEventLoop.add_signal_handler. (GH-11145) (GH-11221)
(cherry picked from commit
e3666fc8effb05b555121f4ab7388df59e21f8b4 )
Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com>
Miss Islington (bot) [Tue, 18 Dec 2018 21:40:23 +0000 (13:40 -0800)]
bpo-35502: Fix reference leaks in ElementTree.TreeBuilder. (GH-11170)
(cherry picked from commit
d2a75c67830d7c9f59e4e9b60f36974234c829ef )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 18 Dec 2018 20:24:39 +0000 (12:24 -0800)]
bpo-35461: Document C API functions which suppress exceptions. (GH-11119)
(cherry picked from commit
3fcc1e08db6fb7e17acc4a8f63be3e42f52f094b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 18 Dec 2018 15:34:54 +0000 (07:34 -0800)]
bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931)
check_environ() of distutils.utils now catchs KeyError on calling
pwd.getpwuid(): don't create the HOME environment variable in this
case.
(cherry picked from commit
17d0c0595e101c4ce76b58e55de37e6b5083e6cd )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Mon, 17 Dec 2018 21:24:52 +0000 (13:24 -0800)]
bpo-35519: Rename test.bisect to test.bisect_cmd (GH-11200)
Rename test.bisect module to test.bisect_cmd to avoid conflict with
bisect module when running directly a test like
"./python Lib/test/test_xmlrpc.py".
(cherry picked from commit
1dd035954bb03c41b954ebbd63969b4bcb0e106e )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Mon, 17 Dec 2018 15:48:29 +0000 (07:48 -0800)]
bpo-35475: Add more PyImport* functions in refcounts.dat. (GH-11142)
(cherry picked from commit
bdabb0737c631835b246c9823852d20331243315 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 17 Dec 2018 15:10:20 +0000 (07:10 -0800)]
bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175)
(cherry picked from commit
842acaab1376c5c84fd5966bb6070e289880e1ca )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Mon, 17 Dec 2018 11:31:03 +0000 (03:31 -0800)]
bpo-23451: Update time.monotonic() documentation (GH-11190)
bpo-23451, bpo-22117: Python 3.5 requires Windows Vista or newer,
time.monotonic() is now always system-wide.
(cherry picked from commit
3ab064e80a9be1e6e9c62437fffb92bde9c5e1fb )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Mon, 17 Dec 2018 10:49:22 +0000 (02:49 -0800)]
bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180)
TextTestRunner of unittest.runner now uses time.perf_counter() rather
than time.time() to measure the execution time of a test: time.time()
can go backwards, whereas time.perf_counter() is monotonic.
Similar change made in libregrtest, pprint and random.
(cherry picked from commit
8db5b54463118e5eb60cb3582e3108623f01f5df )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Mon, 17 Dec 2018 09:03:04 +0000 (01:03 -0800)]
bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182)
Replace time.time() with time.monotonic() in tests to measure time
delta.
test_zipfile64: display progress every minute (60 secs) rather than
every 5 minutes (5*60 seconds).
(cherry picked from commit
2cf4c202ffeb30787c944365ba54013688b854c2 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Mon, 17 Dec 2018 08:34:06 +0000 (00:34 -0800)]
bpo-35412: Add testcase to test_future4 (GH-11131) (GH-11183)
Add testcase to test_future4: check unicode literal.
(cherry picked from commit
502fe19b10f66235fcf8f13fc1c0308190845def )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Sun, 16 Dec 2018 22:24:04 +0000 (14:24 -0800)]
bpo-35499: make profile-opt don't override CFLAGS_NODIST (GH-11164) (GH-11179)
"make profile-opt" no longer replaces CFLAGS_NODIST with CFLAGS. It
now adds profile-guided optimization (PGO) flags to CFLAGS_NODIST,
existing CFLAGS_NODIST flags are kept.
(cherry picked from commit
640ed520dd6a43a8bf470b79542f58b5d57af9de )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Fri, 14 Dec 2018 20:38:23 +0000 (12:38 -0800)]
bpo-35450: reflect in docs that venv module is not always creating a copy of the Python binary (GH-11144) (GH-11167)
https://bugs.python.org/issue35450
(cherry picked from commit
f5107dfd42121ef40b13eb678705802f0ff02cf9 )
Co-authored-by: mkkot <marcin2006@gmail.com>
Miss Islington (bot) [Fri, 14 Dec 2018 17:49:10 +0000 (09:49 -0800)]
bpo-35402: Update Windows build to use Tcl and Tk 8.6.9 (GH-11146)
(cherry picked from commit
f8e9bd568adf85c1e4aea1dda542a96b027797e2 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Fri, 14 Dec 2018 12:26:58 +0000 (04:26 -0800)]
bpo-34279: regrtest consider that skipped tests are ran (GH-11132)
bpo-34279, bpo-35412: support.run_unittest() no longer raises
TestDidNotRun if a test result contains skipped tests. The
exception is now only raised if no test have been run and no test
have been skipped.
(cherry picked from commit
3a8f4fef4a4dd0e4a800545468eef9542e126181 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Fri, 14 Dec 2018 11:35:55 +0000 (03:35 -0800)]
Fixed missing colun in library/sys.po (GH-11153)
GH- Fixed missing colun in library/sys.po
[bpo-35492](https://bugs.python.org/issue35492): Fixed missing colun in library/sys.po
(cherry picked from commit
cb0f5e29e37c081e9bba91a9858370e2504e9e8e )
Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
Serhiy Storchaka [Fri, 14 Dec 2018 09:56:48 +0000 (11:56 +0200)]
[3.7] bpo-35489: Use "const Py_UNICODE *" for the Py_UNICODE converter in AC. (GH-11150). (GH-11151)
(cherry picked from commit
afb3e71a1710c444fbe789b51df43ee16ee9ede7 )
Serhiy Storchaka [Fri, 14 Dec 2018 09:18:13 +0000 (11:18 +0200)]
[3.7] bpo-31446: Copy command line that should be passed to CreateProcessW(). (GH-11141). (GH-11149)
(cherry picked from commit
7b36016a15aeed0d76a4c05a66203e6d7723aace )
Co-authored-by: Vladimir Matveev <v2matveev@outlook.com>
Miss Islington (bot) [Wed, 12 Dec 2018 09:00:44 +0000 (01:00 -0800)]
Add test for double patching instance methods (GH11126)
(cherry picked from commit
5a718e918db6211b633a7afb2bf537eb5b56cb1b )
Co-authored-by: Anthony Sottile <asottile@umich.edu>
Miss Islington (bot) [Wed, 12 Dec 2018 08:58:36 +0000 (00:58 -0800)]
bpo-17185: Add __signature__ to mock that can be used by inspect for signature (GH11125)
* Fix partial and partial method signatures in mock
* Add more calls
* Add NEWS entry
* Use assertEquals and fix markup in NEWS
* Refactor branching and add markup reference for functools
* Revert partial object related changes and fix pr comments
(cherry picked from commit
f7fa62ef4422c9deee050a794fd8504640d9f8f4 )
Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
Ned Deily [Wed, 12 Dec 2018 02:16:34 +0000 (21:16 -0500)]
Post release bump
Ned Deily [Tue, 11 Dec 2018 21:46:13 +0000 (16:46 -0500)]
3.7.2rc1
Ned Deily [Tue, 11 Dec 2018 21:28:00 +0000 (16:28 -0500)]
Minor edits to NEWS entries
Ned Deily [Tue, 11 Dec 2018 21:02:53 +0000 (16:02 -0500)]
Update macOS installer Welcome for 3.7.2
Ned Deily [Tue, 11 Dec 2018 03:05:14 +0000 (22:05 -0500)]
macOS installer build: mitigate hdiutil resource busy bug
Miss Islington (bot) [Tue, 11 Dec 2018 12:14:23 +0000 (04:14 -0800)]
bpo-35412: Skip test_multiprocessing_fork and test_multiprocessing_forkserver on Windows (GH-11086)
Forkserver and fork are not available on Windows and therefore these test must be skipped.
(cherry picked from commit
a932d0b496767b5aac14191cbc17093e502b6cb4 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 11 Dec 2018 11:50:34 +0000 (03:50 -0800)]
bpo-35426: Eliminate race condition in test_interprocess_signal (GH-11087)
The test only except SIGUSR1Exception inside wait_signal(), but the signal can be sent during subprocess_send_signal() call.
(cherry picked from commit
2ab2afd387084ba38a37f5944fcb0675113b64dc )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 11 Dec 2018 10:17:29 +0000 (02:17 -0800)]
[3.7] bpo-33747: Avoid mutating the global sys.modules dict in unittest.mock tests (GH-8520) (GH-11031)
(cherry picked from commit
3cf74384b53b998fa846dc2590cedf9ad2a0d5fd )
Co-authored-by: Anirudha Bose <ani07nov@gmail.com>
https://bugs.python.org/issue33747
Serhiy Storchaka [Tue, 11 Dec 2018 08:51:27 +0000 (10:51 +0200)]
bpo-35444: Fix error handling when fail to look up builtin "getattr". (GH-11047) (GH-11107)
(cherry picked from commit
bb86bf4c4eaa30b1f5192dab9f389ce0bb61114d )
Miss Islington (bot) [Tue, 11 Dec 2018 07:05:13 +0000 (23:05 -0800)]
bpo-35454: Fix miscellaneous minor issues in error handling. (GH-11077)
* bpo-35454: Fix miscellaneous minor issues in error handling.
* Fix a null pointer dereference.
(cherry picked from commit
8905fcc85a6fc3ac394bc89b0bbf40897e9497a6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 11 Dec 2018 06:28:49 +0000 (22:28 -0800)]
bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)
(cherry picked from commit
7cf3d8e25174c8871883e42f3240fd7f01efd3a8 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Tue, 11 Dec 2018 05:43:17 +0000 (21:43 -0800)]
bpo-35401: Update macOS installer to OpenSSL 1.1.0j (GH-11094)
https://bugs.python.org/issue35401
(cherry picked from commit
3ec982640f89f6ce56dd2699a81e0bd834ae0c95 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Tue, 11 Dec 2018 05:14:57 +0000 (21:14 -0800)]
bpo-34977: Remove unused preprocessor definition (GH-11092)
(cherry picked from commit
d5a6a389d492c5e3d7933bafbd5252fd86ac4d49 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Tue, 11 Dec 2018 04:16:46 +0000 (20:16 -0800)]
bpo-35401: Update Windows build to OpenSSL 1.1.0j (GH-11088)
(cherry picked from commit
4824385fec0a1de99b4183f995a3e4923771bf64 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Steve Dower [Tue, 11 Dec 2018 03:58:52 +0000 (19:58 -0800)]
bpo-34977: Add Windows App Store package (GH-11027)
Also adds the PC/layout script for generating layouts on Windows.
Miss Islington (bot) [Mon, 10 Dec 2018 20:51:32 +0000 (12:51 -0800)]
Fix numbered lists in stdtypes.rst. (GH-10989)
(cherry picked from commit
de9e9b476ec4abfb0b9161cff0e86bb7085ca8c6 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Steve Dower [Mon, 10 Dec 2018 16:11:34 +0000 (08:11 -0800)]
[3.7] bpo-34977: Use venv redirector instead of original python.exe on Windows (GH-11029)
Miss Islington (bot) [Mon, 10 Dec 2018 15:25:31 +0000 (07:25 -0800)]
bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)
(cherry picked from commit
b6ef6f69a9afc979640a5f9883f799de1364bff7 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Mon, 10 Dec 2018 12:37:09 +0000 (04:37 -0800)]
bpo-35452: Make PySys_HasWarnOptions() never raising an exception. (GH-11075)
(cherry picked from commit
dffccc6b594951fc798973e521da205785823f0f )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 10 Dec 2018 11:28:13 +0000 (03:28 -0800)]
bpo-31374: Include pyconfig.h earlier in expat (GH-11064)
Include <pyconfig.h> ealier in Modules/expat/xmltok.c to define
properly _POSIX_C_SOURCE. Python defines _POSIX_C_SOURCE as 200809L,
whereas <features.h> (included indirectly by <string.h>) defines
_POSIX_C_SOURCE as 199506L.
(cherry picked from commit
cf247359d5b7082044eea1fa94b5211a172b1ff6 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Victor Stinner [Mon, 10 Dec 2018 11:13:01 +0000 (12:13 +0100)]
bpo-35050: AF_ALG length check off-by-one error (GH-10058) (GH-11069)
The length check for AF_ALG salg_name and salg_type had a off-by-one
error. The code assumed that both values are not necessarily NULL
terminated. However the Kernel code for alg_bind() ensures that the last
byte of both strings are NULL terminated.
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit
2eb6ad8578fa9d764c21a92acd8e054e3202ad19 )
Victor Stinner [Mon, 10 Dec 2018 10:56:48 +0000 (11:56 +0100)]
bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) (GH-11066)
Fix xml.dom.minidom cloneNode() on a document with an entity: pass
the correct arguments to the user data handler of an entity (fix an
old copy/paste mistake).
Bug spotted and fix proposed by Charalampos Stratakis, initial
reproducer written by Petr Viktorin.
Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com>
Co-Authored-By: Petr Viktorin <encukou@gmail.com>
(cherry picked from commit
8e0418688906206fe59bd26344320c0fc026849e )
Miss Islington (bot) [Mon, 10 Dec 2018 10:26:36 +0000 (02:26 -0800)]
bpo-35451: Fix reference counting for sys.warnoptions and sys._xoptions. (GH-11063)
(cherry picked from commit
72ff7b4c000f7b8199231a0eb1ca4b119fab40a5 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 10 Dec 2018 04:20:41 +0000 (20:20 -0800)]
bpo-35433: Properly detect installed SDK versions (GH-11009)
(cherry picked from commit
f46eccd0ffe65333035c3820886295b71c41ab6e )
Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
Miss Islington (bot) [Sun, 9 Dec 2018 19:48:35 +0000 (11:48 -0800)]
bpo-22005: Document the reality of pickle compatibility. (GH-11054)
(cherry picked from commit
e328753d91379274b699b93decff45de07854617 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sun, 9 Dec 2018 07:06:53 +0000 (23:06 -0800)]
bpo-33725: skip test_multiprocessing_fork on macOS (GH-11043)
(cherry picked from commit
ac218bc5dbfabbd61c76ce8a17de088611e21981 )
Co-authored-by: Ned Deily <nad@python.org>
Julien Palard [Sun, 9 Dec 2018 05:56:59 +0000 (06:56 +0100)]
[3.7] Doc: Disable smartquotes for zh-tw, zh-cn, fr and ja translations (GH-9423) (GH-10344)
(cherry picked from commit
c03bf0ae794c3bec9b56f38164535fd1f5bfc04a )
Julien Palard [Sun, 9 Dec 2018 05:21:54 +0000 (06:21 +0100)]
[3.7] Doc: Bump sphinx. (GH-10676) (GH-10803)
Miss Islington (bot) [Sat, 8 Dec 2018 14:34:49 +0000 (06:34 -0800)]
bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033)
In _localemodule.c and selectmodule.c, remove dead code that would
cause double decrefs if run.
In addition, replace PyList_SetItem() with PyList_SET_ITEM() in cases
where a new list is populated and there is no possibility of an error.
In addition, check if the list changed size in the loop in array_array_fromlist().
(cherry picked from commit
99d56b53560b3867844472ae381fb3f858760621 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Sat, 8 Dec 2018 11:47:01 +0000 (03:47 -0800)]
bpo-35330: Don't call the wrapped object if `side_effect` is set (GH11035)
* tests: Further validate `wraps` functionality in `unittest.mock.Mock`
Add more tests to validate how `wraps` interacts with other features of
mocks.
* Don't call the wrapped object if `side_effect` is set
When a object is wrapped using `Mock(wraps=...)`, if an user sets a
`side_effect` in one of their methods, return the value of `side_effect`
and don't call the original object.
* Refactor what to be called on `mock_call`
When a `Mock` is called, it should return looking up in the following
order: `side_effect`, `return_value`, `wraps`. If any of the first two
return `mock.DEFAULT`, lookup in the next option.
It makes no sense to check for `wraps` returning default, as it is
supposed to be the original implementation and there is nothing to
fallback to.
(cherry picked from commit
f05df0a4b679d0acfd0b1fe6187ba2d553b37afa )
Co-authored-by: Mario Corchero <mariocj89@gmail.com>
Victor Stinner [Fri, 7 Dec 2018 13:31:40 +0000 (14:31 +0100)]
Revert "[3.7] bpo-34977: Add Windows App Store package (GH-10245)" (GH-11021)
This reverts commit
253209149389e6793a052034e1f2d97691086f18 .
Serhiy Storchaka [Fri, 7 Dec 2018 12:56:02 +0000 (14:56 +0200)]
[3.7] bpo-22005: Fixed unpickling instances of datetime classes pickled by Python 2. (GH-11017) (GH-11022)
encoding='latin1' should be used for successful decoding.
(cherry picked from commit
8452ca15f41061c8a6297d7956df22ab476d4df4 )
Zackery Spytz [Fri, 7 Dec 2018 12:17:43 +0000 (05:17 -0700)]
bpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes. (GH-11015) (GH-11020)
(cherry picked from commit
4c49da0cb7434c676d70b9ccf38aca82ac0d64a9 )
Miss Islington (bot) [Fri, 7 Dec 2018 06:51:10 +0000 (22:51 -0800)]
bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" (GH-10464)
* bpo-34864: warn if "Prefer tabs when opening documents" set to "Always"
* add NEWS entry
* address code review comments
* address second code review comments
* Add entry for idlelib/NEWS.txt.
(cherry picked from commit
9ebe8794f003dadfff578a066ea503a3e37ffe1d )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Steve Dower [Fri, 7 Dec 2018 05:09:53 +0000 (21:09 -0800)]
[3.7] bpo-34977: Add Windows App Store package (GH-10245)
Miss Islington (bot) [Thu, 6 Dec 2018 21:30:13 +0000 (13:30 -0800)]
Add missing period in distutils.dep_util.newer_group doc (GH-11003)
(cherry picked from commit
c9566b8c454120e3d0ddb5ab970f262a6cd80077 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Thu, 6 Dec 2018 21:16:03 +0000 (13:16 -0800)]
Clarify expectedFailure in the unittest docs. (GH-10953)
(cherry picked from commit
91f259b478ae8bfb4c73e5b5a767e4bf0ee9257f )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Thu, 6 Dec 2018 20:52:43 +0000 (12:52 -0800)]
bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934)
(cherry picked from commit
42b1d6127bd8595522a78a75166ebb9fba74a6a2 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 6 Dec 2018 13:34:59 +0000 (05:34 -0800)]
bpo-35363: test_eintr uses print(flush=True) (GH-10990)
(cherry picked from commit
0644b33821b70efbf0ac1ec1fb8729b05796564a )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Thu, 6 Dec 2018 11:20:50 +0000 (03:20 -0800)]
bpo-35424: test_multiprocessing: join 3 pools (GH-10986)
Join 3 pools in these tests:
* test.test_multiprocessing_spawn.WithProcessesTestPool.test_context
* test.test_multiprocessing_spawn.WithProcessesTestPool.test_traceback
(cherry picked from commit
388c8c208d9d09bd28289c1e4776b947d4d0f0f0 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Thu, 6 Dec 2018 09:58:24 +0000 (01:58 -0800)]
bpo-35384: The repr of ctypes.CArgObject no longer fails for non-ascii character. (GH-10863)
(cherry picked from commit
3ffa8b9ba190101f674a0e524e482a83ed09cccd )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Terry Jan Reedy [Thu, 6 Dec 2018 08:25:40 +0000 (03:25 -0500)]
[3.7] bpo-34162: Update idlelib NEWS to 2018-12-05 (GH-10964) (GH-10980)
Cherry-picked from
6ea9d54 .
Miss Islington (bot) [Thu, 6 Dec 2018 07:22:17 +0000 (23:22 -0800)]
bpo-33709: test_ntpath and test_posixpath fail in Windows with ACP!=1252. (GH-7278)
(cherry picked from commit
8752dfbd1f0c96ca09cdacabaf0d0f8c3895b6ce )
Co-authored-by: native-api <ivan_pozdeev@mail.ru>
Victor Stinner [Thu, 6 Dec 2018 00:49:05 +0000 (01:49 +0100)]
[3.7] Revert "bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450) (GH-9676)" (#10968)
This reverts commit
97f998a4dfd6db6d867f446daa62445d0782bf39 .
Mariatta [Thu, 6 Dec 2018 00:24:44 +0000 (16:24 -0800)]
[3.7] Fix typo in xml.dom.minidom documentation (GH-10956) (GH-10961)
Escape the \t and \n.
Follow up from https://github.com/python/cpython/pull/10814..
(cherry picked from commit
2d8f976cde4794d174b44ff7d5fd970aa89c65e8 )
Co-authored-by: E Kawashima <e-kwsm@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Dec 2018 23:35:43 +0000 (15:35 -0800)]
bpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965)
Moreover, "python3 -m test test_eintr -v" now avoids redirecting
stdout/stderr to a pipe, the child process inherits stdout/stderr
from the parent.
(cherry picked from commit
aa8ae904ad2f576f8e7b38a9a6542d3e9a569be9 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Wed, 5 Dec 2018 22:17:28 +0000 (14:17 -0800)]
Fix typos in concurrent.Futures documentation (GH-10920)
Add a missing word `as` in `as well as an`.
Linkify `threading.Thread`.
(cherry picked from commit
40a61da40d252626f8b9ff524d76c1f0ccb3a4f7 )
Co-authored-by: Matt Wheeler <m@funkyhat.org>
Miss Islington (bot) [Wed, 5 Dec 2018 21:31:07 +0000 (13:31 -0800)]
bpo-35310: Clear select() lists before returning upon EINTR (GH-10877)
select() calls are retried on EINTR (per PEP 475). However, if a
timeout was provided and the deadline has passed after running the
signal handlers, rlist, wlist and xlist should be cleared since select(2)
left them unmodified.
(cherry picked from commit
7f52415a6d4841d77d3b7853e83b25a22e0048dc )
Co-authored-by: Oran Avraham <252748+oranav@users.noreply.github.com>
Serhiy Storchaka [Wed, 5 Dec 2018 21:23:06 +0000 (23:23 +0200)]
bpo-34604: Use %R because of invisible characters or trailing whitespaces. (GH-9165). (GH-10947)
(cherry picked from commit
34c7f0c04e2b4e715b2c3df1875af8939fbe7d0b )
Co-authored-by: William Grzybowski <wg@FreeBSD.org>
Serhiy Storchaka [Wed, 5 Dec 2018 21:09:56 +0000 (23:09 +0200)]
bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. (GH-8113). (GH-10946)
(cherry picked from commit
5b25f1d03100e2283c1b129d461ba68ac0169a14 )
Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Miss Islington (bot) [Wed, 5 Dec 2018 20:29:31 +0000 (12:29 -0800)]
bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419)
(cherry picked from commit
67a93b3a0b3814e97ef9d077b21325fc8ce351b2 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 5 Dec 2018 20:15:54 +0000 (12:15 -0800)]
Correct a couple of unbalanced parenthesis. (GH-10779)
(cherry picked from commit
55f41e45b4318cbe19209f5144641344d0049fb8 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 5 Dec 2018 20:11:16 +0000 (12:11 -0800)]
Move __missing__ after __delitem__ in Data model. (GH-10923)
(cherry picked from commit
1ce853f37783575e2b3aaa159ddcebc8660830ef )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 5 Dec 2018 19:54:42 +0000 (11:54 -0800)]
bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537)
When running test_bdb.py as a script, `import test_module` would be
importing the existing Lib/test/test_modules.py instead of the
tempcwd/test_module.py module which was dynamically created by
test_bdb.py itself.
(cherry picked from commit
54fd45505b3a365e6d53441e6dd7e0d1ec13b46f )
Co-authored-by: Alex H <1884912+lajarre@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Dec 2018 19:35:41 +0000 (11:35 -0800)]
bpo-34987: Fix a possible null pointer dereference in _pickle.c's save_reduce(). (GH-9886)
(cherry picked from commit
25d389789c59a52a31770f7c50ce9e02a8909190 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Wed, 5 Dec 2018 16:07:57 +0000 (08:07 -0800)]
bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919)
* posixpath.expanduser() now returns the input path unchanged if
the HOME environment variable is not set and pwd.getpwuid() raises
KeyError (the current user identifier doesn't exist in the password
database).
* Add test_no_home_directory() to test_site.
(cherry picked from commit
f2f4555d8287ad217a1dba7bbd93103ad4daf3a8 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Wed, 5 Dec 2018 07:51:08 +0000 (23:51 -0800)]
bpo-35414: Add a missing Py_INCREF(Py_None) in PyState_RemoveModule(). (GH-10914)
(cherry picked from commit
2a893430c9c8378cbdfac95895a64fa07aaff9ed )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Victor Stinner [Wed, 5 Dec 2018 02:03:28 +0000 (03:03 +0100)]
bpo-35363, test_eintr: skip test_open() on macOS (GH-10896) (GH-10911)
(cherry picked from commit
4752e65250bce60b97d5af702d586092d02fbf58 )