summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] Fixed several assertTrue() that were intended to be assertEqual(). ↵Serhiy Storchaka2018-07-094-7/+11
| | | | | | | | (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>
* bpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684). (GH-8193) ↵Serhiy Storchaka2018-07-093-36/+45
| | | | | | | (GH-8196) (cherry picked from commit 2a9b8babf0d09946ebebfdb2931cc0d3db5a1d3d). (cherry picked from commit 7c43b801503c802ed6ea4b811f5bc73791249d94)
* bpo-33888: Use CPython instead of Python in the FAQ (GH-7767)Miss Islington (bot)2018-07-071-6/+6
| | | | | | 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>
* [2.7] closes bpo-34050: Fix link in SSL docs (GH-8173). (GH-8179)Benjamin Peterson2018-07-072-2/+3
| | | | | (cherry picked from commit 9c5ba097485c8c643b670acd4026f4382bc92f4b) Co-authored-by: Marcin Niemira <marcin@niemira.net>
* [2.7] bpo-33804: Document that the argument for io.TextIOBase.read() is ↵Andrés Delfino2018-07-081-1/+1
| | | | | | | optional (GH-7510). (GH-8171) (cherry picked from commit b6bb77c2b8e83ba6cb845c7b512ac564276e854f) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* [2.7] bpo-34019: Fix wrong arguments for Opera Browser (GH-8047) (#8126)Pablo Galindo2018-07-072-4/+5
| | | | | | | | 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>
* [2.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line ↵Ammar Askar2018-07-063-12/+47
| | | | | | | | | | | 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)
* [2.7] bpo-33720: Improve tests for the stack overflow in marshal.loads(). ↵Serhiy Storchaka2018-07-051-2/+16
| | | | | | | (GH-7336). (GH-8107) (cherry picked from commit fc05e68d8fac70349b7ea17ec14e7e0cfa956121) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Don't export pending_threadfunc from _testcapi. (GH-8075)Miss Islington (bot)2018-07-031-1/+2
| | | | | (cherry picked from commit b4588c2fffbda91e4c2f0cf2b0fc3d14def95608) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-34018: Doc'd that type names of SQLite converters are case-insensitive. ↵Miss Islington (bot)2018-07-031-2/+2
| | | | | | | (GH-8042) (GH-8066) (cherry picked from commit 831c29721dcb1b768c6315a4b8a4059c4c97ee8b) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* bpo-33735: Fix test_multiprocessing random failure (GH-8059) (GH-8061)Victor Stinner2018-07-031-3/+3
| | | | | | | | | | | | | | 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)
* [2.7] bpo-33974: Fix passing special characters to ttk widgets. (GH-7986) ↵Serhiy Storchaka2018-06-303-1/+44
| | | | | | | | (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)
* [2.7] bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). ↵Zackery Spytz2018-06-294-0/+18
| | | | | | | (GH-3918). (GH-8013) (cherry picked from commit 23db935bcf258657682e66464bf8512def8af830) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Update 2.7 doc templates for 3.7.0 (GH-7996)Ned Deily2018-06-282-3/+3
|
* bpo-33958: Doc: Remove unused variable in example (GH-7927)Miss Islington (bot)2018-06-271-1/+1
| | | | | (cherry picked from commit 62b6cea6b843076cfd6631eccd9347e8c3dd9458) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
* [2.7] closes bpo-33956: update vendored expat to 2.2.5 (GH-7925)Benjamin Peterson2018-06-269-1457/+1333
| | | | | (cherry picked from commit 4e21100fa7bf66e0b32146d3f46ae16afc73fee1) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-29514: Make magic number test work for candidates (GH-7946)Ned Deily2018-06-261-1/+1
|
* [2.7] bpo-33873: Backport regrtest from master (GH-7936)Victor Stinner2018-06-263-18/+73
| | | | | | | | | | | | | | | | | | | | | | | | * 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)
* bpo-27780: Make pgen.c C89 compliant (GH-7915)Zachary Ware2018-06-251-2/+3
|
* [2.7] bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7905)Tal Einat2018-06-251-1/+1
| | | | | (cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* [2.7] bpo-33943: Add references in the docs for logging.basicConfig ↵Tal Einat2018-06-251-11/+11
| | | | | | | | | | (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>
* bpo-33711: Fix license generation error in installer build script (GH-7241)native-api2018-06-242-1/+2
|
* [2.7] bpo-33885: Replace "hook function" with "callable" (GH-7765). (#7885)Andrés Delfino2018-06-231-2/+2
| | | | | (cherry picked from commit c45cb479074b5d25f0d382d3109f527520a9f03c) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-33887: Add TOC to Design and History FAQ(GH-7766)Miss Islington (bot)2018-06-231-0/+5
| | | | | (cherry picked from commit 38cf49bf695903ac7a8516bca6bbb6b32d935bb5) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* make pgen.c C89 compliant again (GH-7870)Benjamin Peterson2018-06-221-1/+2
|
* [2.7] properly free memory in pgen. (GH-7869) (closes bpo-27780Benjamin Peterson2018-06-224-2/+36
| | | | | (cherry picked from commit 9ac11a752a19c3b8607582a3d5ccb615c467124b) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [2.7] bpo-33877: Remove UNIX qualification for running complete programs ↵Andrés Delfino2018-06-221-5/+5
| | | | | | | | (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>
* bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7825)Victor Stinner2018-06-223-0/+15
| | | Add -g to LDFLAGS when compiling with LTO to get debug symbols.
* bpo-33931: Fix building using PC\VS9.0\build.bat -e (GH-7844)Anselm Kruis2018-06-213-4/+5
| | | Set the openssl version to 1.0.2o and fix compiling Tcl.
* bpo-33901: Fix test_gdbm for gdbm 1.15 (GH-7798) (GH-7818)Victor Stinner2018-06-202-3/+10
| | | | | | 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)
* bpo-33717: set terse to True when calling platform.platform in ↵Miss Islington (bot)2018-06-201-1/+1
| | | | | | | test.pythoninfo (GH-7797) (GH-7803) (cherry picked from commit 71ca738f4cd2696d056d0cdb83bebd576f98ccc2) Co-authored-by: Xiang Zhang <angwerzx@126.com>
* Fix four spelling typos in documentation (GH-7753)Xtreak2018-06-194-4/+4
|
* bpo-33892: Doc: Use gender neutral words (GH-7770)Andrés Delfino2018-06-197-19/+19
| | | | | (cherry picked from commit 5092439c2cb32112a5869b138011d38491db90a9) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* [2.7] bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) (GH-7758)Terry Jan Reedy2018-06-162-1/+2
| | | | | | Make it the same as when one runs 'python'.. (cherry picked from commit 9d49f85064c388e2dddb9f8cb4ae1f486bc8d357) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* bpo-33571: Improve the glossary description for '...' prompt (GH-6971)Miss Islington (bot)2018-06-151-2/+3
| | | | | | 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>
* Improve the grammar in the glossary item for `list` (GH-7727) Miss Islington (bot)2018-06-151-1/+1
| | | | | | | " ... access to elements is O(1)." (cherry picked from commit 7469ff5017ec315a81e35913f19a32f0dbdf712e) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* Fix compiler warnings on Windows (GH-7729)Victor Stinner2018-06-161-11/+11
| | | | | | | | 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)
* bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7726)Victor Stinner2018-06-155-35/+140
| | | | | | | | | | | | | | | | | | | | * 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)
* [2.7] bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) (#7716)Andrés Delfino2018-06-151-1/+1
| | | | | | '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>
* bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 ↵Xiang Zhang2018-06-154-2/+21
| | | | | | | | | | (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>
* [2.7] bpo-33828: Clarify auto-numbering is not available to ↵Xiang Zhang2018-06-131-2/+3
| | | | | | 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.
* bpo-33845: Update Doc\make.bat on 2.7 to bring it on par to master version ↵Andrés Delfino2018-06-121-26/+33
| | | | (GH-7667)
* bpo-23404: Update/sync What's New files for 3.6/3.5/2.7 (GH-7624)Ned Deily2018-06-111-9/+37
|
* Remove hyphens from phrase "picks up where it left off" (GH-7410)Mariatta2018-06-091-1/+1
| | | | | (cherry picked from commit d689f976199d2e211a97d526b57cfa9871cc578d) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-33766: Document that end of file or string is a newline (GH-7383)Miss Islington (bot)2018-06-091-5/+6
| | | | | (cherry picked from commit 0aa17ee6a76df0946d42e7657a501f1862065a22) Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
* bpo-28222: Don't fail if pygments is not available (GH-7564)Zachary Ware2018-06-091-2/+14
| | | | | | | 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)
* bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521) (GH-7562)Victor Stinner2018-06-092-7/+47
| | | | | | | | 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)
* bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)Miss Islington (bot)2018-06-083-10/+40
| | | | | | | | - 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>
* [2.7] Add version change for OpenSSL 1.1.0 compatibility (GH-7541)Mayank Singhal2018-06-091-0/+3
|
* [2.7] bpo-33751: Fix test_file. (GH-7378) (GH-7445)Serhiy Storchaka2018-06-081-87/+81
| | | | | | | | testModeStrings and testTruncateOnWindows were depended on a file leaked in other tests. Also improve cleaning up after tests. (cherry picked from commit c2745d2d05546d76f655ab450eb23d1af39e0b1c)