summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31259: test_urllib2_localnet uses addCleanup(server.stop) (#3186)Victor Stinner2017-08-221-5/+14
| | | | | | 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().
* bpo-31234: fork_wait tests now join threads (#3139) (#3187)Victor Stinner2017-08-221-8/+17
| | | | | | fork_wait.py tests now joins threads, to not leak running threads in the background. (cherry picked from commit c99d41f9c0304fcf06550515c3db55f93a629e9e)
* [3.6] bpo-30871: Add test.pythoninfo (#3174)Victor Stinner2017-08-215-3/+479
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* [3.6] bpo-30121: Fix debug assert in subprocess on Windows (#1224) (#3173)Victor Stinner2017-08-212-9/+59
| | | | | | | | | | | | | | | | | | | * 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)
* bpo-31247: xmlrpc.server: break reference cycle (#3166) (#3168)Victor Stinner2017-08-212-12/+26
| | | | | xmlrpc.server now explicitly breaks reference cycles when using sys.exc_info() in code handling exceptions. (cherry picked from commit 84524454d0ba77d299741c47bd0f5841ac3f66ce)
* [3.6] bpo-31206: IDLE: Factor HighPage class from ConfigDialog (GH-3160) (#3162)Cheryl Sabella2017-08-201-657/+0
| | | | Part 3 of 3. Remove old highlight functions and load_config as this functionality is now contained within classes. Patch by Cheryl Sabella. (cherry picked from commit 4bfebc63012f0f4e00f6a98c3d96e1c0ebe93408)
* [3.6] bpo-31206: IDLE: Factor HighPage class from ConfigDialog (GH-3156) (#3159)Cheryl Sabella2017-08-202-39/+37
| | | | Patch 2 of 3, to avoid horrendous diff. Create highlights page from new HighPage class instead of old ConfigDialog methods and change tests to match. Patch by Cheryl Sabella. (cherry picked from commit 8f7a798edbdbca9a400105e3225463e59b334666)
* [3.6] bpo-31206: IDLE: Factor HighPage class from ConfigDialog (GH-3141) (#3154)Cheryl Sabella2017-08-192-0/+645
| | | | This is the first half of a patch similar to the one for for bpo-31205. It is being split into 2 PRs to avoid what happened with PR-3096 -- an incomprehensible diff that could not be cleanly backported to 3.6. This half copies several methods of ConfigDialog and turns them into a new class. Patch by Cheryl Sabella. (cherry picked from commit a32e40561a24de373d1c5a437a8aa329758ba8e4)
* [3.6] bpo-31232: Backport custom print rshift message (GH-3155)Nick Coghlan2017-08-193-0/+50
| | | | | | | | | | | | | bpo-30721 added a "Did you mean ...?" suggestion to rshift TypeError messages that triggers when the LHS is a Python C function called "print". Since this custom error message is expected to be triggered primarily by attempts to use Python 2 print redirection syntax in Python 3, and is incredibly unlikely to be encountered otherwise, it is also being backported to the next 3.6 maintenance release. Initial patch by Sanyam Khurana.
* bpo-31234: test_threading: fix ref cycle (#3150) (#3152)Victor Stinner2017-08-191-0/+2
| | | | | test_bare_raise_in_brand_new_thread() now explicitly breaks a reference cycle to not leak a dangling thread. (cherry picked from commit 3d284c081fc3042036adfe1bf2ce92c34d743b0b)
* bpo-31235: Fix ResourceWarning in test_logging (#3147) (#3149)Victor Stinner2017-08-181-0/+1
| | | (cherry picked from commit a7719e27b3cad0f2b86cb932a76cbe55c541b02e)
* bpo-30947: Update libexpat from 2.2.1 to 2.2.3 (#3106) (#3143)Victor Stinner2017-08-1813-104/+735
| | | | | | | | | | | | | | | * bpo-30947: Update libexpat from 2.2.1 to 2.2.3 * Add NEWS entry * Add new loadlibrary.c * expat_external.h: restore include "pyexpatns.h" * PCbuild: add expat/loadlibrary.c * Define XML_POOR_ENTROPY to compile expat (cherry picked from commit 93d0cb58b4da2a88c56f472c6c19491cc7a390df)
* Fix broken `Show Source` links on documentation pages (GH-3113) (GH-3125)Mariatta2017-08-181-1/+1
| | | | | | The `Show Source` was broken because of a change made in sphinx 1.5.1 In Sphinx 1.4.9, the sourcename was "index.txt". In Sphinx 1.5.1+, it is now "index.rst.txt". (cherry picked from commit b9ff498793611d1c6a9b99df464812931a1e2d69)
* [3.6] bpo-31001: IDLE: Add tests for configdialog highlight tab (GH-3123) ↵Terry Jan Reedy2017-08-183-157/+671
| | | | | (#3124) (cherry picked from commit 82aff62)
* [3.6] bpo-31221: patchcheck ignores external libraries (#3109) (#3116)Victor Stinner2017-08-171-2/+21
| | | | | | | | | | | | | | | | | | | | | | * bpo-31221: patchcheck ignores external libraries (#3109) Tools/scripts/patchcheck.py now ignores changes in directories which are copies of external libraries: * Modules/_ctypes/libffi_msvc/ * Modules/_ctypes/libffi_osx/ * Modules/_decimal/libmpdec/ * Modules/expat/ * Modules/zlib/ Drop also support for Mercurial, since CPython migrated to Git. Exclude also libmpdec patchcheck: exclude also libffi_osx and libffi_msvc (cherry picked from commit 4a347ce426fe7381885703d9074d7a6b3aeb2f2b) * Exclude also Modules/_ctypes/libffi on Python 3.6
* Update the language selection in the docs language switch. (GH-3114) (#3115)Julien Palard2017-08-171-1/+1
| | | | Change the option for `Français` into `French` to be consistent with the other language selections that are already in English. (cherry picked from commit b616b972999cdd5fe54ef8a43c131a27ca538dee)
* bpo-29619: Do not use HAVE_LARGEFILE_SUPPORT for type conversions (GH-1666) ↵Victor Stinner2017-08-171-18/+5
| | | | | | | (#3102) Use only the LongLong form for the conversions (cherry picked from commit 50e86033de85294d87b7e942701d456342abde8e)
* bpo-31069, test_multiprocessing: Fix dangling process (#3103) (#3104)Victor Stinner2017-08-161-1/+2
| | | | | Fix a warning about dangling processes in test_rapid_restart() of _test_multiprocessing: join the process. (cherry picked from commit 17657bb9458ff8f8804b7637d61686a68f4b9471)
* Revert "[3.6] bpo-30983: eval frame rename in pep 0523 broke gdb's python ↵Victor Stinner2017-08-162-8/+2
| | | | | extension (GH-2803) (#3090)" (#3101) This reverts commit 09b77165e3fffa7b7ff160ad06042cdcfa004bf5.
* [3.6] bpo-30928: Update idlelib/NEWS.txt to 2017-08-15. (GH-3098) (#3099)Terry Jan Reedy2017-08-151-1/+29
| | | (cherry picked from commit 7f06684)
* [3.6] bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (GH-3096) (#3097)Terry Jan Reedy2017-08-153-458/+471
| | | | | | | | | | | | | * bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (#3096) The slightly modified tests continue to pass. Patch by Cheryl Sabella. (cherry picked from commit e36d9f5568093b3885da62a0bf0fdfbe3771672b) * [3.6] bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (GH-3096) The slightly modified tests continue to pass. Patch by Cheryl Sabella.. (cherry picked from commit e36d9f5568093b3885da62a0bf0fdfbe3771672b)
* [3.6] bpo-30714: ALPN changes for OpenSSL 1.1.0f (#3093)Christian Heimes2017-08-153-4/+8
| | | | | | | | | | | OpenSSL 1.1.0 to 1.1.0e aborted the handshake when server and client could not agree on a protocol using ALPN. OpenSSL 1.1.0f changed that. The most recent version now behaves like OpenSSL 1.0.2 again. The ALPN callback can pretend to not been set. See https://github.com/openssl/openssl/pull/3158 for more details Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit a5c1bab352671e043645163ca50c5211aa657acd)
* [3.6] bpo-31002: IDLE: Add tests for configdialog keys tab (GH-2996) (#3092)Terry Jan Reedy2017-08-153-188/+610
| | | | Patch by Cheryl Sabella. (cherry picked from commit 2f89646)
* [3.6] bpo-30983: eval frame rename in pep 0523 broke gdb's python extension ↵Łukasz Langa2017-08-142-2/+8
| | | | | | | | | | (GH-2803) (#3090) pep 0523 renames PyEval_EvalFrameEx to _PyEval_EvalFrameDefault while the gdb python extension only looks for PyEval_EvalFrameEx to understand if it is dealing with a frame. Final effect is that attaching gdb to a python3.6 process doesnt resolve python objects. Eg. py-list and py-bt dont work properly. This patch fixes that. Tested locally on python3.6 (cherry picked from commit 2e0f4db114)
* bpo-31067: test_subprocess calls reap_children() (#2931) (#3074)Victor Stinner2017-08-111-0/+2
| | | | | test_subprocess now also calls reap_children() in tearDown(), not only on setUp(). (cherry picked from commit cc42c121eb5346f673247f95dac575aadb77d66c)
* bpo-31173: Rewrite WSTOPSIG test of test_subprocess (#3055) (#3070)Victor Stinner2017-08-112-35/+43
| | | | | | | | | | | | | | The current test_child_terminated_in_stopped_state() function test creates a child process which calls ptrace(PTRACE_TRACEME, 0, 0) and then crash (SIGSEGV). The problem is that calling os.waitpid() in the parent process is not enough to close the process: the child process remains alive and so the unit test leaks a child process in a strange state. Closing the child process requires non-trivial code, maybe platform specific. Remove the functional test and replaces it with an unit test which mocks os.waitpid() using a new _testcapi.W_STOPCODE() function to test the WIFSTOPPED() path. (cherry picked from commit 7b7c6dcfff6a35333988a3c74c895ed19dff2e09)
* bpo-31008: Fix asyncio test_wait_for_handle on Windows (#3065) (#3068)Victor Stinner2017-08-101-1/+3
| | | (cherry picked from commit 5659a72f487579be76335c09c8ba8b2f1800adde)
* bpo-31159: fix language switch regex on unknown yet built languages. … (#3051)Julien Palard2017-08-101-2/+3
| | | | | | | | | | | | | | * bpo-31159: fix language switch regex on unknown yet built languages. (#3039) This fix a regex issue (a missing non-matching group around an 'or' list) and the specific possible case where a translation is built but not yet in known by the picker, but not explicitly listing possible languages in the regex. (cherry picked from commit 122081deef86174beee965be1207fa46ea23533d) * bpo-31149: Doc: Add Japanese to the language switcher. (#3028) (cherry picked from commit c82b7f332aff606af6c9c163da75f1e86514125e)
* [3.6] bpo-31160: Backport reap_children() fixes from master to 3.6 (#3060)Victor Stinner2017-08-103-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | * bpo-31160: Fix test_builtin for zombie process (#3043) PtyTests.run_child() now calls os.waitpid() to read the exit status of the child process to avoid creating zombie process and leaking processes in the background. (cherry picked from commit 4baca1b0f7325032598cd38e7ceffc79b616d255) * bpo-31160: regrtest now reaps child processes (#3044) Add a post_test_cleanup() function which currently only calls support.reap_children(). (cherry picked from commit e3510d74aacc477c30f42f2b941d69689bbc478e) * bpo-31160: test_builtin: don't check waitpid() status (#3050) (cherry picked from commit 3ca9f50f96cfa5c1b7aa56639042531b57f07fbb) * bpo-31160: test_tempfile: Fix reap_children() warning (#3056) TestRandomNameSequence.test_process_awareness() now calls os.waitpid() to avoid leaking a zombie process. (cherry picked from commit 6c8c2943d996b59a48d331f61f22cbe72933910e)
* [3.6] bpo-19903: IDLE: Calltips changed to use inspect.signature (GH-2822) ↵Terry Jan Reedy2017-08-103-23/+60
| | | | | | | | (#3053) Idlelib.calltips.get_argspec now uses inspect.signature instead of inspect.getfullargspec, like help() does. This improves the signature in the call tip in a few different cases, including builtins converted to provide a signature. A message is added if the object is not callable, has an invalid signature, or if it has positional-only parameters. Patch by Louie Lu.. (cherry picked from commit 3b0f620c1a2a21272a9e2aeca6ca1d1ac10f8162)
* [3.6] bpo-31150: Wait for child process in test_forkinthread to avoid thread ↵Ammar Askar2017-08-091-0/+2
| | | | reaped warnings (#3041)
* [3.6] bpo-31070: Fix a race condition in importlib _get_module_lock(). ↵Serhiy Storchaka2017-08-093-1479/+1494
| | | | | (GH-3033). (#3038) (cherry picked from commit 9b0d1d647e3d2ec9d299e5c9f49b02fbbb810a5a)
* ttk: fix LabeledScale and OptionMenu destroy() method (#3025) (#3030)Victor Stinner2017-08-092-4/+12
| | | | | | | | | bpo-31135: Call the parent destroy() method even if the used attribute doesn't exist. The LabeledScale.destroy() method now also explicitly clears label and scale attributes to help the garbage collector to destroy all widgets. (cherry picked from commit cd7e9c1b67d3d07ee03e0a79af2791c19031cecb)
* bpo-31045: Language switch (#2652) (#3023)Julien Palard2017-08-084-71/+151
| | | | | | | | | | | | | | | | | | | * Doc: Indicate the language * Renaming version_switcher to switchers (to add language_switcher). * Adding language switch. * Doc switchers: Enhance readability of regex parsing versions. * Doc switchers: Desambiguate the need of a replace(/\/+$/g, '') by proper naming. * Doc switchers: py3k can't reach js, it's redirected server-side by nginx. * Doc switchers: Examples matching actual regexes. * Doc switchers: Better fallback on unexisting translated version. (cherry picked from commit dff9b5f9d62aa0b23f8a255867d09d11890efd1b)
* [3.6] bpo-31130: IDLE -- stop leaks in test_configdialog. (GH-3016) (#3018)Terry Jan Reedy2017-08-073-38/+50
| | | | Initial patch by Victor Stinner. (cherry picked from commit 733d0f6)
* [3.6] bpo-29910: IDLE - revert `break`s that disabled calltip close. ↵Terry Jan Reedy2017-08-071-4/+4
| | | | | (GH-2997) (#3017) (cherry picked from commit 8922587)
* [3.6] bpo-30808: Use _Py_atomic API for concurrency-sensitive signal state ↵Antoine Pitrou2017-08-062-18/+21
| | | | | | | | | | | | | | | | (GH-2417) (#3007) * Improve signal delivery Avoid using Py_AddPendingCall from signal handler, to avoid calling signal-unsafe functions. * Remove unused function * Improve comments * Use _Py_atomic API for concurrency-sensitive signal state * Add blurb (cherry picked from commit 2c8a5e4c968217f9672340e520942c4ed788d8de)
* bpo-31029: test_tokenize Add missing import unittest (#2998)Rajath Agasthya2017-08-051-0/+1
|
* [3.6] bpo-31107: Fix copyreg mangled slot names calculation. (GH-2989) (#3003)Shane Harvey2017-08-054-1/+18
| | | (cherry picked from commit c4c9866064f03646c686d7e08b00aeb203c35c19)
* Fix a shadow-compatible-local warning (#2181)Yuan Chao Chou2017-08-042-168/+168
| | | | Change the shadowing naming, 'value' (Python-ast.c:4686), to 'val' to prevent the variables from being misused.
* [3.6] Improve grammar in asyncio documentation (GH-2993) (GH-2994)Mariatta2017-08-031-1/+1
| | | | | "not only is it .." is the correct form, as opposed to: "not only it is ..." (cherry picked from commit 87c3c5de731af18a271f4559cd69ccb8d050208f)
* [3.6] bpo-31071: Avoid masking original TypeError in call with * unpacking ↵Serhiy Storchaka2017-08-033-29/+52
| | | | | | (GH-2957) (#2991) when other arguments are passed. (cherry picked from commit 25e4f77)
* [3.6] bpo-30978: str.format_map() now passes key lookup exceptions through. ↵Serhiy Storchaka2017-08-034-7/+20
| | | | | | (GH-2790) (#2992) Previously any exception was replaced with a KeyError exception. (cherry picked from commit 5075416)
* bpo-31061: fix crash in asyncio speedup module (GH-2984)INADA Naoki2017-08-024-0/+32
| | | (cherry picked from commit de34cbe9cdaaf7b85fed86f99c2fd071e1a7b1d2)
* [3.6] bpo-31083: IDLE: Describe the Page classes in configdialog (GH-2965) ↵Terry Jan Reedy2017-08-012-15/+30
| | | | | | | (#2973) Add template as comment. Update existing classes to match outline. Initial patch by Cheryl Sabella. (cherry picked from commit 6f446be)
* Remove .mention-bot (GH-2923) (GH-2970)Mariatta2017-08-011-3/+0
| | | (cherry picked from commit e1e60bd95c376f9b18cbaf9481364281c6cc1bc7)
* bpo-25910: Update LICENSE (GH-2873) (GH-2967)Mariatta2017-08-011-6/+5
| | | | Use the copy provided in https://bugs.python.org/issue25910GH-msg295200 (cherry picked from commit 8474d87165593bac2bc231287f42c4cff3fd6aaf)
* [3.6] bpo-25684: ttk.OptionMenu radiobuttons weren't unique (GH-2276) (#2959)csabella2017-07-314-1/+30
| | | | | | | between instances of OptionMenu. (cherry picked from commit a568e5273382a5dca0c27274f7d8e34c41a87d4d) * Update Misc/ACKS
* [3.6] bpo-31050: IDLE: Factor GenPage class from ConfigDialog (GH-2952) (#2955)Terry Jan Reedy2017-07-303-284/+269
| | | | | The slightly modified tests for the General tab continue to pass. Patch by Cheryl Sabella. (cherry picked from commit e8eb17b)
* [3.6] bpo-31004: IDLE: Factor out FontPage class from configdialog (step 1) ↵Terry Jan Reedy2017-07-303-239/+271
| | | | | | | | (GH-2905) (#2950) The slightly modified tests continue to pass. The General test broken by the switch to Notebook is fixed. Patch mostly by Cheryl Sabella. (cherry picked from commit 9397e2a)