summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-241-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-231-1/+2
|
* [2.7] properly free memory in pgen. (GH-7869) (closes bpo-27780Benjamin Peterson2018-06-234-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-231-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-191-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-187-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-161-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-161-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-151-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-131-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-101-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-093-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)
* bpo-31731: test_io hangs with --huntrleaks: exclude it (GH-7459)Victor Stinner2018-06-061-0/+6
| | | test_io hangs with --huntrleaks: exclude the test in regrtest.
* bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) (GH-7456)Victor Stinner2018-06-062-8/+21
| | | | | | | | | | | 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)
* bpo-19418: audioop.c: Fix warnings on -0x80000000 (GH-7453)Victor Stinner2018-06-061-2/+5
| | | | | | | | 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
* bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7452)Victor Stinner2018-06-061-12/+19
| | | | | | | | 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)
* PC/_subprocess.c: Fix signed/unsigned comparison (GH-7446)Victor Stinner2018-06-061-1/+1
| | | | Fix the following compiler warning on Windows: ..\PC\_subprocess.c(384): warning C4018: '>' : signed/unsigned mismatch
* [2.7] remove hg support from patchcheck (GH-7440). (GH-7444)Benjamin Peterson2018-06-061-28/+3
| | | (cherry picked from commit b8c0845fee9277b1106ceecbf7592f8806c73ec8)
* bpo-33600: document that platform.linux_distribution() has been removed ↵Timo Furrer2018-06-051-0/+4
| | | | (GH-7281)
* [2.7] bpo-33767: Fix improper use of SystemError by mmap.mmap objects ↵Serhiy Storchaka2018-06-053-21/+13
| | | | | | | | (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>
* bpo-18174: Fix fd_count() on FreeBSD (GH-7420)Victor Stinner2018-06-051-2/+3
| | | | Python 2.7 doesn't have FileNotFoundError exception: use OSError and errno.ENOENT.
* bpo-18174: regrtest -R 3:3 now also detects FD leak (#7409)Victor Stinner2018-06-053-20/+117
| | | | | | "python -m test --huntrleaks ..." now also checks for leak of file descriptors. Co-Authored-By: Richard Oudkerk <shibturn@gmail.com>
* bpo-18174: Fix file descriptor leaks in tests (GH-7408)Victor Stinner2018-06-042-0/+2
| | | | | | | | * 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.
* [2.7] bpo-31234: Join threads explicitly in tests (#7406)Victor Stinner2018-06-046-73/+122
| | | | | | | | | | | | | | | * 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.
* test_tools: catch stderr (GH-7404)Victor Stinner2018-06-041-2/+5
| | | Hide "recursedown('@test_9296_tmp')" message.
* [2.7] bpo-33718: Update regrtest from master (GH-7402)Victor Stinner2018-06-042-87/+144
| | | | | | | | | | | | | 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
* bpo-27902: Add compatibility note to Profile docs (GH-7295)Miss Islington (bot)2018-06-041-5/+6
| | | | | (cherry picked from commit f7745e1dcb8e8473cc86112a0213b3f244a07230) Co-authored-by: Tobias Kunze <r@rixx.de>
* bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)Miss Islington (bot)2018-06-041-6/+7
| | | | | | The bytes parameter uses big endian. (cherry picked from commit b75ec0856771b51684b08c4e5068fbfad25c5e83) Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
* bpo-33764: Appveyor fixes (GH-7364) (GH-7380)Ned Deily2018-06-041-3/+4
| | | | | * Prevent spurious message if taking a shortcut * Fix YAML style * Disable largefile tests
* [2.7] bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7374)Serhiy Storchaka2018-06-041-7/+3
| | | | | | It depended on a global variable set by other tests.. (cherry picked from commit 7cfd8c6a1b53a7dbdea14b6f414f2629dcd130a2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [2.7] bpo-33760: Fix file leaks in test_io. (GH-7361). (GH-7373)Serhiy Storchaka2018-06-041-0/+3
| | | | | (cherry picked from commit e36837cb71032ccfa713e75623b314f091dc22bb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [2.7] bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal ↵Antoine Pitrou2018-06-032-12/+4
| | | | | | (GH-7146) (GH-7347) (cherry picked from commit e905c84494526363086f66a979e317e155bf9536)
* [2.7] bpo-33744: Fix test_uu. (GH-7350) (GH-7354)Serhiy Storchaka2018-06-031-82/+33
| | | | | Separate tests leaked files or were depended on files leaked in other tests. (cherry picked from commit 027f95c736457f12c5713d9cf5b95ac335e583df)