]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Zackery Spytz [Mon, 6 Aug 2018 13:47:48 +0000 (07:47 -0600)]
[2.7] bpo-34236: Remove mistakenly backported Test6012 in test_capi.py. (GH-8681)
This was backported by mistake in
ef19fd2 .
Terry Jan Reedy [Mon, 6 Aug 2018 13:03:44 +0000 (09:03 -0400)]
[2.7] bpo-34273: Change 'Fixed point' to 'Fixed-point notation'. (GH-8673)
The change in the mini language floating point and decimal table
is consistent with 'Exponential notation' and clarifies that we
are referring to the output notation, not an object type.
(cherry picked from commit
28c7f8c8ce34a0cb848822a252a9d0a761fb42d5 )
Miss Islington (bot) [Fri, 3 Aug 2018 09:43:18 +0000 (02:43 -0700)]
Fix docstring of Profiler class (GH-8651)
(cherry picked from commit
2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1 )
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
Terry Jan Reedy [Fri, 3 Aug 2018 03:40:20 +0000 (23:40 -0400)]
[2.7] bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639) (GH-8644)
Some MacOS-tk combinations need .update_idletasks().
The call is both unneeded and innocuous on Linux and Windows.
Patch by Kevin Walzer.
(cherry picked from commit
9beaef6225cdae972b1cccd5310828cc29bf9d33 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Victor Stinner [Thu, 2 Aug 2018 16:02:59 +0000 (18:02 +0200)]
Fix compilation warnings on Windows (GH-8627)
* Fix compilation warning in _ctypes module on Window
(cherry picked from commit
20f11fe43c47b68c8b9dd6539d2d40b66c9957f9 )
* Fix compilation warnings on Windows 64-bit
(cherry picked from commit
725e4212229bf68f87d4f66c1815d444ddfc7aa5 )
* Fix compiler warning in unicodeobject.c
Explicitly case to Py_UNICODE to fix the warning:
Objects\unicodeobject.c(4225): warning C4244: '=' :
conversion from 'long' to 'Py_UNICODE', possible loss of data
The downcast cannot overflow since we check that value <= 0x10ffff.
Victor Stinner [Thu, 2 Aug 2018 15:40:11 +0000 (17:40 +0200)]
bpo-29565: Fix compilation for C89 (GH-8626)
Use a local scope for the 'i' variable.
Victor Stinner [Thu, 2 Aug 2018 14:47:26 +0000 (16:47 +0200)]
bpo-29565: Corrected ctypes passing of large structs by value on Windows AMD64 (GH-168) (GH-8625)
Fixed bpo-29565: Corrected ctypes passing of large structs by value.
Added code and test to check that when a structure passed by value
is large enough to need to be passed by reference, a copy of the
original structure is passed. The callee updates the passed-in value,
and the test verifies that the caller's copy is unchanged. A similar
change was also added to the test added for bpo-20160 (that test was
passing, but the changes should guard against regressions).
(cherry picked from commit
a86339b83fbd0932e0529a3c91935e997a234582 )
Tal Einat [Thu, 2 Aug 2018 07:21:49 +0000 (10:21 +0300)]
[2.7] bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)
Added missing .grab_release() calls to all places where we call .grab_set().
(cherry picked from commit
10ea9409ceb5da83cb380b610750551e26561044 )
Serhiy Storchaka [Tue, 31 Jul 2018 06:09:36 +0000 (09:09 +0300)]
[2.7] bpo-34234: Use _PyAnyInt_Check() and _PyAnyInt_CheckExact(). (GH-8479)
Miss Islington (bot) [Tue, 31 Jul 2018 05:58:12 +0000 (22:58 -0700)]
bpo-27671: Update FAQ about why len is function (GH-8432)
(cherry picked from commit
c48e26dcadbff8620bb5881d3bd148fc8894d0ef )
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
Andrés Delfino [Mon, 30 Jul 2018 19:16:35 +0000 (16:16 -0300)]
[2.7] Use 'for example' instead of 'in other words' in compound statement doc (GH-8401)
(cherry picked from commit
6921ef7bef4eab3819b3d0fda5fa3e3b2a8c0613 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Xtreak [Thu, 26 Jul 2018 16:20:34 +0000 (21:50 +0530)]
bpo-34229: Check start and stop of slice object to be long when they are not int in PySlice_GetIndices (GH-8480)
Miss Islington (bot) [Wed, 25 Jul 2018 17:40:09 +0000 (10:40 -0700)]
bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)
(cherry picked from commit
c0f0a7669c73c0d444851dd4c5299de2479214cc )
Co-authored-by: Aaron Ang <aaronang@users.noreply.github.com>
Miss Islington (bot) [Tue, 24 Jul 2018 16:27:12 +0000 (09:27 -0700)]
Fix site module documentation. (GH-8441)
The script will exit with the number 0 (zero), instead of the letter O.
(cherry picked from commit
95d34c2a37f4c5046f6439abef881925d34fe4ac )
Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
Tal Einat [Mon, 23 Jul 2018 21:38:34 +0000 (00:38 +0300)]
[2.7] bpo-33468: Add try-finally contextlib.contextmanager example (GH-7816) (GH-8427)
(cherry picked from commit
bde782bb594edffeabe978abeee2b7082ab9bc2a )
Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
Serhiy Storchaka [Mon, 23 Jul 2018 19:32:09 +0000 (22:32 +0300)]
bpo-34189: Remove a file backported by accident. (GH-8419)
Miss Islington (bot) [Mon, 23 Jul 2018 14:07:03 +0000 (07:07 -0700)]
bpo-33336, imaplib: Legalize MOVE command (GH-6569)
imaplib now allows MOVE command in IMAP4.uid() (RFC 6851:
IMAP MOVE Extension) and potentially as a name of supported
method of IMAP4 object.
(cherry picked from commit
caa331d492acc67d8f4edd16542cebfabbbe1e79 )
Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
Serhiy Storchaka [Sun, 22 Jul 2018 19:15:16 +0000 (22:15 +0300)]
[2.7] bpo-34189: Add simple tests for new Tk widget options. (GH-8396). (GH-8400)
(cherry picked from commit
e271ca78e37a502b3dc1036f824aa3999efcd56b )
(cherry picked from commit
c75c1e0e8aeb720ac3fcfab119b70cabba4e8235 )
Zackery Spytz [Sun, 22 Jul 2018 16:53:56 +0000 (10:53 -0600)]
bpo-25943: Check for integer overflow in bsddb's DB_join(). (GH-8392)
Zackery Spytz [Sat, 21 Jul 2018 08:27:44 +0000 (02:27 -0600)]
bpo-25943: Fix potential heap corruption in bsddb's _db_associateCallback() (GH-8337)
There was a missing check for integer overflow, several function calls
were not checked for failure, and allocated memory was not freed if an
error occurred.
Zachary Ware [Fri, 20 Jul 2018 02:51:42 +0000 (21:51 -0500)]
[2.7] Enable GUI testing on Travis Linux builds via Xvfb (GH-7887)
(cherry picked from commit
b12112b5ba608cdd7a0962a6b18cad4fe58b46e6 )
Miss Islington (bot) [Tue, 17 Jul 2018 20:23:52 +0000 (13:23 -0700)]
Clarify ValueError's broad applicability (GH-8313) (GH-8316)
(cherry picked from commit
feabae961707b00008c15a31352e458f4e8b3a6c )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Serhiy Storchaka [Tue, 17 Jul 2018 15:15:46 +0000 (18:15 +0300)]
[2.7] bpo-34068: iobase_close could call PyObject_SetAttrString with an exception set (GH-8282). (GH-8312) (GH-8314)
(cherry picked from commit
28f07364f066792ceee93231dbb80ae8ad98b2bb )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>.
(cherry picked from commit
cc13016658a9ed86d0b702ab6c251ad5952a952f )
Miss Islington (bot) [Wed, 11 Jul 2018 21:53:17 +0000 (14:53 -0700)]
bpo-34080: Fix a memory leak in the compiler. (GH-8222)
(cherry picked from commit
993030aac576710a46b3dd0b4864f819d4a94145 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Wed, 11 Jul 2018 16:49:17 +0000 (19:49 +0300)]
[2.7] bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192). (GH-8255)
(cherry picked from commit
504373c59b48f1ea12132d515459022730db6047 )
Also backport tests for skipitem() and handling errors.
Tal Einat [Tue, 10 Jul 2018 10:28:09 +0000 (13:28 +0300)]
[2.7] bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091) (#8225)
Actually just one fix on the 2.7 branch.
Contributed by Bradley Laney.
(cherry picked from commit
6b490b5db40fc29588e8e6cc23bb89c4fed74ad5 )
Benjamin Peterson [Tue, 10 Jul 2018 05:36:49 +0000 (22:36 -0700)]
[2.7] prefix internal sqlite symbols with _pysqlite_ (GH-8215). (GH-8217)
(cherry picked from commit
7762e4d3872818272800dfbd8e1d8e3a689eb8f2 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Benjamin Peterson [Tue, 10 Jul 2018 04:12:57 +0000 (21:12 -0700)]
[2.7] delete some unused pysqlite forward declarations (GH-8211). (GH-8214)
(cherry picked from commit
d6d4432724b12efc0d280b8eb80bca0deb8d4323 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Serhiy Storchaka [Mon, 9 Jul 2018 17:00:53 +0000 (20:00 +0300)]
[2.7] Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191) (GH-8202)
Fixed also testing the "always" warning filter.
(cherry picked from commit
b796e7dcdc24ff7ec53044af041254c83a8ace21 )
Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Serhiy Storchaka [Mon, 9 Jul 2018 11:39:06 +0000 (14:39 +0300)]
bpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684). (GH-8193) (GH-8196)
(cherry picked from commit
2a9b8babf0d09946ebebfdb2931cc0d3db5a1d3d ).
(cherry picked from commit
7c43b801503c802ed6ea4b811f5bc73791249d94 )
Miss Islington (bot) [Sat, 7 Jul 2018 23:32:57 +0000 (16:32 -0700)]
bpo-33888: Use CPython instead of Python in the FAQ (GH-7767)
Make the change where discussing the CPython implementation of lists and dicts.
(cherry picked from commit
8d41278045ee4e8bf1cadb58a7db58d70ad55237 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Benjamin Peterson [Sat, 7 Jul 2018 22:48:07 +0000 (15:48 -0700)]
[2.7] closes bpo-34050: Fix link in SSL docs (GH-8173). (GH-8179)
(cherry picked from commit
9c5ba097485c8c643b670acd4026f4382bc92f4b )
Co-authored-by: Marcin Niemira <marcin@niemira.net>
Andrés Delfino [Sat, 7 Jul 2018 21:10:18 +0000 (18:10 -0300)]
[2.7] bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510). (GH-8171)
(cherry picked from commit
b6bb77c2b8e83ba6cb845c7b512ac564276e854f )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Pablo Galindo [Fri, 6 Jul 2018 23:54:09 +0000 (00:54 +0100)]
[2.7] bpo-34019: Fix wrong arguments for Opera Browser (GH-8047) (#8126)
The Opera Browser was using a outdated command line invocation that resulted in an incorrect URL being opened in the browser when requested using the webbrowser module.
* Correct the arguments passed to the Opera Browser when opening a new URL..
(cherry picked from commit
3cf1f154edb88c108877729ea09f4ac174697fea )
Co-authored-by: Bumsik Kim <k.bumsik@gmail.com>
Ammar Askar [Fri, 6 Jul 2018 10:23:13 +0000 (06:23 -0400)]
[2.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891) (#8133)
Most of the change involves fixing up the test suite, which previously made
the assumption that there wouldn't be a new line if the input didn't end in
one.
Contributed by Ammar Askar.
(cherry picked from commit
c4ef4896eac86a6759901c8546e26de4695a1389 )
Serhiy Storchaka [Thu, 5 Jul 2018 09:20:19 +0000 (12:20 +0300)]
[2.7] bpo-33720: Improve tests for the stack overflow in marshal.loads(). (GH-7336). (GH-8107)
(cherry picked from commit
fc05e68d8fac70349b7ea17ec14e7e0cfa956121 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 4 Jul 2018 05:48:45 +0000 (22:48 -0700)]
Don't export pending_threadfunc from _testcapi. (GH-8075)
(cherry picked from commit
b4588c2fffbda91e4c2f0cf2b0fc3d14def95608 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Tue, 3 Jul 2018 12:37:36 +0000 (05:37 -0700)]
bpo-34018: Doc'd that type names of SQLite converters are case-insensitive. (GH-8042) (GH-8066)
(cherry picked from commit
831c29721dcb1b768c6315a4b8a4059c4c97ee8b )
Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Victor Stinner [Tue, 3 Jul 2018 11:43:24 +0000 (13:43 +0200)]
bpo-33735: Fix test_multiprocessing random failure (GH-8059) (GH-8061)
When hunting memory leaks using -R 3:3, test_imap_unordered() of
test_multiprocessing leaks randomly a few memory blocks. It is a
false alarm: when testing using -R 3:20 for example, no leak is
detected.
Modify test_imap_unordered() to be closer to test_imap():
* Only test 10 numbers instead of 1000: it's a pool of 4 processes, so
10 is enough to test at least one number per process
* Use chunksize=100 instead of chunksize=53 to mimick test_imap()
(cherry picked from commit
23401fb960bb94e6ea62d2999527968d53d3fc65 )
Serhiy Storchaka [Sat, 30 Jun 2018 10:34:56 +0000 (13:34 +0300)]
[2.7] bpo-33974: Fix passing special characters to ttk widgets. (GH-7986) (GH-8021)
Fix passing lists and tuples of strings containing special characters
'"', '\\', '{', '}' and '\n' as options to tkinter.ttk widgets.
(cherry picked from commit
5bb5bbfca847524bab5f2368bdb48eedf5dba74f )
Zackery Spytz [Fri, 29 Jun 2018 20:07:13 +0000 (14:07 -0600)]
[2.7] bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918). (GH-8013)
(cherry picked from commit
23db935bcf258657682e66464bf8512def8af830 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Ned Deily [Thu, 28 Jun 2018 19:20:35 +0000 (15:20 -0400)]
Update 2.7 doc templates for 3.7.0 (GH-7996)
Miss Islington (bot) [Thu, 28 Jun 2018 06:37:17 +0000 (23:37 -0700)]
bpo-33958: Doc: Remove unused variable in example (GH-7927)
(cherry picked from commit
62b6cea6b843076cfd6631eccd9347e8c3dd9458 )
Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
Benjamin Peterson [Wed, 27 Jun 2018 03:56:58 +0000 (20:56 -0700)]
[2.7] closes bpo-33956: update vendored expat to 2.2.5 (GH-7925)
(cherry picked from commit
4e21100fa7bf66e0b32146d3f46ae16afc73fee1 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Ned Deily [Wed, 27 Jun 2018 03:55:36 +0000 (23:55 -0400)]
bpo-29514: Make magic number test work for candidates (GH-7946)
Victor Stinner [Tue, 26 Jun 2018 21:57:12 +0000 (23:57 +0200)]
[2.7] bpo-33873: Backport regrtest from master (GH-7936)
* bpo-33718: regrtest: use format_duration() to display failed tests (GH-7686)
* Enhance also format_duration(): work on integers and rounds towards
+infinity (math.ceil).
* Write unit tests on format_duration()
(cherry picked from commit
4ffe9c2b251f6e027b26250b7a2618e78d4edd22 )
* bpo-33873: regrtest: Add warning on -R 1:3 (GH-7736)
regrtest: Add warning when using less than 3 warmup runs like -R 1:3.
(cherry picked from commit
cac4fef8860e66a9da67d09762f5b614b9471a12 )
* bpo-33873: Fix bug in `runtest.py` and add checks for invalid `-R` parameters (GH-7735)
Fix bug in `Lib/test/libregrtest/runtest.py` that makes running tests an extra time than the specified number of runs.
Add check for invalid --huntrleaks/-R parameters.
(cherry picked from commit
58ed7307ea0b5c5aa052291ebc3030f314f938d8 )
Zachary Ware [Tue, 26 Jun 2018 03:40:15 +0000 (22:40 -0500)]
bpo-27780: Make pgen.c C89 compliant (GH-7915)
Tal Einat [Mon, 25 Jun 2018 10:47:23 +0000 (13:47 +0300)]
[2.7] bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7905)
(cherry picked from commit
4a6e746079441d18c30e3c4d014f106faaf7792f )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Tal Einat [Mon, 25 Jun 2018 06:52:35 +0000 (09:52 +0300)]
[2.7] bpo-33943: Add references in the docs for logging.basicConfig (GH-7858) (GH-7902)
Adds references to info about file modes, `time.strftime()`, string formatting
syntaxes, and logging levels.
(cherry picked from commit
a8ddf85a84364d2c660e6670a7e06621993d1fdc )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
native-api [Sun, 24 Jun 2018 22:50:23 +0000 (01:50 +0300)]
bpo-33711: Fix license generation error in installer build script (GH-7241)
Andrés Delfino [Sun, 24 Jun 2018 02:16:29 +0000 (23:16 -0300)]
[2.7] bpo-33885: Replace "hook function" with "callable" (GH-7765). (#7885)
(cherry picked from commit
c45cb479074b5d25f0d382d3109f527520a9f03c )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Sat, 23 Jun 2018 18:33:43 +0000 (11:33 -0700)]
bpo-33887: Add TOC to Design and History FAQ(GH-7766)
(cherry picked from commit
38cf49bf695903ac7a8516bca6bbb6b32d935bb5 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Benjamin Peterson [Sat, 23 Jun 2018 04:51:44 +0000 (21:51 -0700)]
make pgen.c C89 compliant again (GH-7870)
Benjamin Peterson [Sat, 23 Jun 2018 04:04:21 +0000 (21:04 -0700)]
[2.7] properly free memory in pgen. (GH-7869) (closes bpo-27780
(cherry picked from commit
9ac11a752a19c3b8607582a3d5ccb615c467124b )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Andrés Delfino [Sat, 23 Jun 2018 02:37:17 +0000 (23:37 -0300)]
[2.7] bpo-33877: Remove UNIX qualification for running complete programs (GH-7744)
The statement is true for Windows (and macOS) also..
(cherry picked from commit
c9d43c702a53804c23ecb22a0dbf6a47c804d2b1 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Victor Stinner [Fri, 22 Jun 2018 07:11:33 +0000 (09:11 +0200)]
bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7825)
Add -g to LDFLAGS when compiling with LTO to get debug symbols.
Anselm Kruis [Thu, 21 Jun 2018 14:08:32 +0000 (16:08 +0200)]
bpo-33931: Fix building using PC\VS9.0\build.bat -e (GH-7844)
Set the openssl version to 1.0.2o and fix compiling Tcl.
Victor Stinner [Wed, 20 Jun 2018 08:57:38 +0000 (10:57 +0200)]
bpo-33901: Fix test_gdbm for gdbm 1.15 (GH-7798) (GH-7818)
Fix test_gdbm.test_reorganize() on macOS with gdbm 1.15: add a
larger value to make sure that the file size changes.
(cherry picked from commit
13c79c677f9ec9437c82eda72fa1c2d288d8fceb )
Miss Islington (bot) [Tue, 19 Jun 2018 18:02:17 +0000 (11:02 -0700)]
bpo-33717: set terse to True when calling platform.platform in test.pythoninfo (GH-7797) (GH-7803)
(cherry picked from commit
71ca738f4cd2696d056d0cdb83bebd576f98ccc2 )
Co-authored-by: Xiang Zhang <angwerzx@126.com>
Xtreak [Tue, 19 Jun 2018 03:46:49 +0000 (09:16 +0530)]
Fix four spelling typos in documentation (GH-7753)
Andrés Delfino [Mon, 18 Jun 2018 15:33:58 +0000 (12:33 -0300)]
bpo-33892: Doc: Use gender neutral words (GH-7770)
(cherry picked from commit
5092439c2cb32112a5869b138011d38491db90a9 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Terry Jan Reedy [Sat, 16 Jun 2018 22:15:18 +0000 (18:15 -0400)]
[2.7] bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) (GH-7758)
Make it the same as when one runs 'python'..
(cherry picked from commit
9d49f85064c388e2dddb9f8cb4ae1f486bc8d357 )
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
Miss Islington (bot) [Sat, 16 Jun 2018 03:58:15 +0000 (20:58 -0700)]
bpo-33571: Improve the glossary description for '...' prompt (GH-6971)
Mention that it can be triggered by triple quotes and after specifying decorators.
(cherry picked from commit
68680035143a3a6398faa88f067f244c74691d19 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Sat, 16 Jun 2018 02:53:58 +0000 (19:53 -0700)]
Improve the grammar in the glossary item for `list` (GH-7727)
" ... access to elements is O(1)."
(cherry picked from commit
7469ff5017ec315a81e35913f19a32f0dbdf712e )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Victor Stinner [Fri, 15 Jun 2018 22:33:51 +0000 (00:33 +0200)]
Fix compiler warnings on Windows (GH-7729)
Fix comparison between signed and unsigned integers. Example of fixed
warning:
Modules\_sre.c(838): warning C4018: '<' : signed/unsigned mismatch
(cherry picked from commit
1fa174a418d78ef24aa741945230a5074b3e6236 )
Victor Stinner [Fri, 15 Jun 2018 21:59:56 +0000 (23:59 +0200)]
bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7726)
* bpo-32962: python-gdb catchs ValueError on read_var() (GH-7692)
python-gdb now catchs ValueError on read_var(): when Python has no
debug symbols for example.
(cherry picked from commit
019d33b7a447e78057842332fb5d3bad01922122 )
* bpo-32962: python-gdb catchs UnicodeDecodeError (GH-7693)
python-gdb now catchs UnicodeDecodeError exceptions when calling
string().
(cherry picked from commit
d22fc0bc7de7882da204abe50884bbde2da4f9e7 )
bpo-29367: python-gdb.py now supports also method-wrapper
(wrapperobject) objects.
(cherry picked from commit
611083331d534481ca7956a376e38fb0e9ef3854 )
Andrés Delfino [Fri, 15 Jun 2018 19:23:37 +0000 (16:23 -0300)]
[2.7] bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) (#7716)
'expresson list' refers to the grammar term 'expression_list' in the subscription production..
(cherry picked from commit
4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Xiang Zhang [Fri, 15 Jun 2018 13:26:55 +0000 (21:26 +0800)]
bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958) (GH-7704)
Hangul composition check boundaries are wrong for the second character
([0x1161, 0x1176) instead of [0x1161, 0x1176]) and third character ((0x11A7, 0x11C3)
instead of [0x11A7, 0x11C3])..
(cherry picked from commit
d134809cd3764c6a634eab7bb8995e3e2eff14d5 )
Co-authored-by: Wonsup Yoon <pusnow@me.com>
Xiang Zhang [Wed, 13 Jun 2018 02:37:54 +0000 (10:37 +0800)]
[2.7] bpo-33828: Clarify auto-numbering is not available to string.Formatter. (GH-7668) (GH-7676)
string.Formatter auto-numbering feature was added in 3.4 and not
available in 2.7. Make the documentation unambiguous.
Andrés Delfino [Wed, 13 Jun 2018 00:30:57 +0000 (21:30 -0300)]
bpo-33845: Update Doc\make.bat on 2.7 to bring it on par to master version (GH-7667)
Ned Deily [Mon, 11 Jun 2018 09:01:01 +0000 (05:01 -0400)]
bpo-23404: Update/sync What's New files for 3.6/3.5/2.7 (GH-7624)
Mariatta [Sun, 10 Jun 2018 03:59:04 +0000 (20:59 -0700)]
Remove hyphens from phrase "picks up where it left off" (GH-7410)
(cherry picked from commit
d689f976199d2e211a97d526b57cfa9871cc578d )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Sat, 9 Jun 2018 23:55:26 +0000 (16:55 -0700)]
bpo-33766: Document that end of file or string is a newline (GH-7383)
(cherry picked from commit
0aa17ee6a76df0946d42e7657a501f1862065a22 )
Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
Zachary Ware [Sat, 9 Jun 2018 18:50:23 +0000 (13:50 -0500)]
bpo-28222: Don't fail if pygments is not available (GH-7564)
We can't just skip the test if docutils is available,
but pygments is not because the purpose of the test
was testing a bug in _check_rst_data().
(cherry-picked from
b5bb404ccaa9a3dd81e220fb4ca40253be778831 )
Victor Stinner [Sat, 9 Jun 2018 16:59:19 +0000 (18:59 +0200)]
bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521) (GH-7562)
If tests are re-run, use "xxx then yyy" result format (ex: "FAILURE
then SUCCESS") to show that some failing tests have been re-run.
Add also test_regrtest.test_rerun_fail() test.
(cherry picked from commit
c45fc7673e23f911639d10d3771ffef7be870c7a )
Miss Islington (bot) [Sat, 9 Jun 2018 01:28:02 +0000 (18:28 -0700)]
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
- bugfix and test for fragile metavar handling in argparse (see
bpo-24089, bpo-14046, bpo-25058, bpo-11874)
- also fixes some incorrect tests that did not make 1-element tuples correctly
(cherry picked from commit
66f02aa32f1e4adb9f24cf186f8c495399d5ce9b )
Co-authored-by: wim glenn <wim.glenn@gmail.com>
Mayank Singhal [Sat, 9 Jun 2018 01:26:13 +0000 (06:56 +0530)]
[2.7] Add version change for OpenSSL 1.1.0 compatibility (GH-7541)
Serhiy Storchaka [Fri, 8 Jun 2018 17:24:19 +0000 (20:24 +0300)]
[2.7] bpo-33751: Fix test_file. (GH-7378) (GH-7445)
testModeStrings and testTruncateOnWindows were depended on
a file leaked in other tests.
Also improve cleaning up after tests.
(cherry picked from commit
c2745d2d05546d76f655ab450eb23d1af39e0b1c )
Victor Stinner [Wed, 6 Jun 2018 21:33:31 +0000 (23:33 +0200)]
bpo-31731: test_io hangs with --huntrleaks: exclude it (GH-7459)
test_io hangs with --huntrleaks: exclude the test in regrtest.
Victor Stinner [Wed, 6 Jun 2018 17:04:50 +0000 (19:04 +0200)]
bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) (GH-7456)
Substract one because listdir() opens internally a file
descriptor to list the content of the /proc/self/fd/ directory.
Add test_support.test_fd_count().
Move also MAXFD code before msvcrt.CrtSetReportMode(), to make sure
that the report mode is always restored on failure.
(cherry picked from commit
492d6424a7ca907c8ec1df21e51062e8f3d88e32 )
Victor Stinner [Wed, 6 Jun 2018 15:51:07 +0000 (17:51 +0200)]
bpo-19418: audioop.c: Fix warnings on -0x80000000 (GH-7453)
bpo-19418, bpo-33781: Fix the following warnings on Windows:
Modules\audioop.c(28): warning C4146: unary minus operator applied
to unsigned type, result still unsigned
Modules\audioop.c(396): warning C4146: unary minus operator applied
to unsigned type, result still unsigned
Victor Stinner [Wed, 6 Jun 2018 15:12:39 +0000 (17:12 +0200)]
bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7452)
Move the floor() call into fbound() to call floor() on a double
rather than an int. The change should enhance the rounding.
Document also (int)double rounding mode.
(cherry picked from commit
45e4efba7fa2abe61d25e4f8b5bf482e19ff1280 )
Victor Stinner [Wed, 6 Jun 2018 11:10:41 +0000 (13:10 +0200)]
PC/_subprocess.c: Fix signed/unsigned comparison (GH-7446)
Fix the following compiler warning on Windows:
..\PC\_subprocess.c(384): warning C4018: '>' : signed/unsigned mismatch
Benjamin Peterson [Wed, 6 Jun 2018 05:55:10 +0000 (22:55 -0700)]
[2.7] remove hg support from patchcheck (GH-7440). (GH-7444)
(cherry picked from commit
b8c0845fee9277b1106ceecbf7592f8806c73ec8 )
Timo Furrer [Tue, 5 Jun 2018 20:14:46 +0000 (22:14 +0200)]
bpo-33600: document that platform.linux_distribution() has been removed (GH-7281)
Serhiy Storchaka [Tue, 5 Jun 2018 16:51:37 +0000 (19:51 +0300)]
[2.7] bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381) (GH-7432)
Raise TypeError instead of SystemError for unsupported operations.
(cherry picked from commit
e9e397605789b2a67b67558fbbe756b7b88934f5 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Victor Stinner [Tue, 5 Jun 2018 11:30:48 +0000 (13:30 +0200)]
bpo-18174: Fix fd_count() on FreeBSD (GH-7420)
Python 2.7 doesn't have FileNotFoundError exception: use OSError and
errno.ENOENT.
Victor Stinner [Tue, 5 Jun 2018 10:36:31 +0000 (12:36 +0200)]
bpo-18174: regrtest -R 3:3 now also detects FD leak (#7409)
"python -m test --huntrleaks ..." now also checks for leak of file
descriptors.
Co-Authored-By: Richard Oudkerk <shibturn@gmail.com>
Victor Stinner [Mon, 4 Jun 2018 22:36:42 +0000 (00:36 +0200)]
bpo-18174: Fix file descriptor leaks in tests (GH-7408)
* test_tempfile.test_no_leak_fd() mocks os.close() but it doesn't
call the original os.close() method and so leaks an open file
descriptor. Fix the test by calling the original os.close()
function.
* test_posix.test_fdopen_directory(): close the directory file
descriptor when the test completes.
Victor Stinner [Mon, 4 Jun 2018 21:53:52 +0000 (23:53 +0200)]
[2.7] bpo-31234: Join threads explicitly in tests (#7406)
* Add support.wait_threads_exit(): context manager looping at exit
until the number of threads decreases to its original number.
* Add some missing thread.join()
* test_asyncore.test_send(): call explicitly t.join() because the cleanup
function is only called outside the test method, whereas the method
has a @test_support.reap_threads decorator
* test_hashlib: replace threading.Event with thread.join()
* test_thread:
* Use wait_threads_exit() context manager
* Replace test_support with support
* test_forkinthread(): check child process exit status in the
main thread to better handle error.
Victor Stinner [Mon, 4 Jun 2018 20:26:21 +0000 (22:26 +0200)]
test_tools: catch stderr (GH-7404)
Hide "recursedown('@test_9296_tmp')" message.
Victor Stinner [Mon, 4 Jun 2018 20:25:54 +0000 (22:25 +0200)]
[2.7] bpo-33718: Update regrtest from master (GH-7402)
Backport manually regrtest enhancements from master:
* No longer clear filters, like --match, to re-run failed tests in
verbose mode (-w option).
* Tests result: always indicate if tests have been interrupted.
* Enhance tests summary
* After failing tests are re-run, display again the summary.
* Add environment_altered to test.support, but it's currently unused
* regrtest: count also ENV_CHANGED as failures
* regrtest: Enhance format_duration()
* Replace test_support with support
Miss Islington (bot) [Mon, 4 Jun 2018 17:29:55 +0000 (10:29 -0700)]
bpo-27902: Add compatibility note to Profile docs (GH-7295)
(cherry picked from commit
f7745e1dcb8e8473cc86112a0213b3f244a07230 )
Co-authored-by: Tobias Kunze <r@rixx.de>
Miss Islington (bot) [Mon, 4 Jun 2018 17:24:37 +0000 (10:24 -0700)]
bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)
The bytes parameter uses big endian.
(cherry picked from commit
b75ec0856771b51684b08c4e5068fbfad25c5e83 )
Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
Ned Deily [Mon, 4 Jun 2018 04:52:38 +0000 (00:52 -0400)]
bpo-33764: Appveyor fixes (GH-7364) (GH-7380)
* Prevent spurious message if taking a shortcut
* Fix YAML style
* Disable largefile tests
Serhiy Storchaka [Mon, 4 Jun 2018 03:39:00 +0000 (06:39 +0300)]
[2.7] bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7374)
It depended on a global variable set by other tests..
(cherry picked from commit
7cfd8c6a1b53a7dbdea14b6f414f2629dcd130a2 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Mon, 4 Jun 2018 03:37:57 +0000 (06:37 +0300)]
[2.7] bpo-33760: Fix file leaks in test_io. (GH-7361). (GH-7373)
(cherry picked from commit
e36837cb71032ccfa713e75623b314f091dc22bb )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Antoine Pitrou [Sun, 3 Jun 2018 18:46:43 +0000 (20:46 +0200)]
[2.7] bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) (GH-7347)
(cherry picked from commit
e905c84494526363086f66a979e317e155bf9536 )
Serhiy Storchaka [Sun, 3 Jun 2018 16:31:53 +0000 (19:31 +0300)]
[2.7] bpo-33744: Fix test_uu. (GH-7350) (GH-7354)
Separate tests leaked files or were depended on files leaked in other tests.
(cherry picked from commit
027f95c736457f12c5713d9cf5b95ac335e583df )
Miss Islington (bot) [Sat, 2 Jun 2018 15:41:26 +0000 (08:41 -0700)]
bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
`writerows()` takes an iterable.
(cherry picked from commit
a801cf164be7c62b6a6dba47ff91d6c3edb67729 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>