summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.6] bpo-31287: IDLE - do not alter tkinter.messagebox in configdialog ↵Terry Jan Reedy2017-08-272-7/+15
| | | | | tests. (GH-3220) (#3221) (cherry picked from commit 3457f42)
* [3.6] bpo-30781: IDLE - use ttk widgets in configdialog (GH-2654) (#3214)Terry Jan Reedy2017-08-262-85/+85
| | | | Patch by Cheryl Sabella. (cherry picked from commit 7028e59)
* [3.6] bpo-31271: Fix an assertion failure in io.TextIOWrapper.write. ↵Oren Milman2017-08-261-0/+8
| | | | | (GH-3201) (#3209) (cherry picked from commit a5b4ea15b61e3f3985f4f0748a18f8b888a63532)
* [3.6] bpo-28261: Prevent raising SystemError where PyArg_ParseTuple is used ↵Oren Milman2017-08-262-0/+5
| | | | to parse non-args. (#3210)
* bpo-31161: only check for parens error for SyntaxError (#3083)Martijn Pieters2017-08-221-0/+28
| | | | | Subclasses such as IndentError and TabError should not have this message applied.
* 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-212-3/+471
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-211-12/+24
| | | | | 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-191-0/+643
| | | | 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-191-0/+33
| | | | | | | | | | | | | 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)
* [3.6] bpo-31001: IDLE: Add tests for configdialog highlight tab (GH-3123) ↵Terry Jan Reedy2017-08-182-157/+670
| | | | | (#3124) (cherry picked from commit 82aff62)
* 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)
* [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-152-458/+469
| | | | | | | | | | | | | * 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-151-2/+3
| | | | | | | | | | | 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-152-188/+609
| | | | Patch by Cheryl Sabella. (cherry picked from commit 2f89646)
* 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-111-35/+22
| | | | | | | | | | | | | | 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)
* [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-102-23/+57
| | | | | | | | (#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-091-2/+12
| | | | | (GH-3033). (#3038) (cherry picked from commit 9b0d1d647e3d2ec9d299e5c9f49b02fbbb810a5a)
* ttk: fix LabeledScale and OptionMenu destroy() method (#3025) (#3030)Victor Stinner2017-08-091-4/+8
| | | | | | | | | 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)
* [3.6] bpo-31130: IDLE -- stop leaks in test_configdialog. (GH-3016) (#3018)Terry Jan Reedy2017-08-072-38/+49
| | | | 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)
* 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-052-1/+15
| | | (cherry picked from commit c4c9866064f03646c686d7e08b00aeb203c35c19)
* [3.6] bpo-31071: Avoid masking original TypeError in call with * unpacking ↵Serhiy Storchaka2017-08-031-0/+16
| | | | | | (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-032-1/+8
| | | | | | (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-022-0/+27
| | | (cherry picked from commit de34cbe9cdaaf7b85fed86f99c2fd071e1a7b1d2)
* [3.6] bpo-31083: IDLE: Describe the Page classes in configdialog (GH-2965) ↵Terry Jan Reedy2017-08-011-15/+27
| | | | | | | (#2973) Add template as comment. Update existing classes to match outline. Initial patch by Cheryl Sabella. (cherry picked from commit 6f446be)
* [3.6] bpo-25684: ttk.OptionMenu radiobuttons weren't unique (GH-2276) (#2959)csabella2017-07-312-1/+27
| | | | | | | 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-302-284/+267
| | | | | 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-302-239/+267
| | | | | | | | (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)
* [3.6] bpo-30928: Update IDLE News.txt. (GH-2948) (#2949)Terry Jan Reedy2017-07-301-2/+40
| | | (cherry picked from commit c3aa47f655abe564a2c2fb6d091ab19bdc0113b5)
* [3.6] bpo-31027: Fix test_listcomps failure when run directly (GH-2939) (#2945)Terry Jan Reedy2017-07-291-1/+1
| | | | Bug appears to be incomplete copy-paste-edit. (cherry picked from commit ceb93f4)
* [3.6] bpo-30781: IDLE - Use ttk Notebook in ConfigDialog (GH-2938) (#2944)Terry Jan Reedy2017-07-292-35/+42
| | | | | | The notebook looks a bit better. It will work better with separate page classes. Traversal of widgets by Tab works better. Switching tabs with keys becomes possible. The font sample box works better at large font sizes. One of the two simulated click tests no longer works. This will be investigated while fixing a bug with the widget itself. (cherry picked from commit b331f80)
* [3.6] bpo-30853: IDLE - touch-up configdialog.VarTrace and tests. (GH-2936) ↵Terry Jan Reedy2017-07-282-16/+23
| | | | | | | (#2937) Add clear method for tests. Adjust tests to use global instance. Remove unneeded ConfigDialog method. (cherry picked from commit 5d0f30a)
* [3.6] bpo-30853: IDLE: Convert font and general vars to use VarTrace ↵Terry Jan Reedy2017-07-281-62/+42
| | | | | | | | (GH-2914) (#2935) Instance tracers manages pairs consisting of a tk variable and a callback function. When tracing is turned on, setting the variable calls the function. Test coverage for the new class is 100%. (cherry picked from commit 5b59154)
* [3.6] bpo-31060: IDLE: Finish regrouping ConfigDialog methods (GH-2908) (#2925)Terry Jan Reedy2017-07-281-768/+772
| | | | Finish resorting the 72 ConfigDialog methods into 7 groups that represent the dialog, action buttons, and font, highlight, keys, general, and extension pages. This will help with continuing to add tests and improve the pages. It will enable splitting ConfigDialog into 6 or 7 more comprehensible classes. (cherry picked from commit b166080)
* bpo-31044: Skip test_posix.test_makedev() on FreeBSD (#2915) (#2917)Victor Stinner2017-07-271-0/+4
| | | | | | There is a bug in FreeBSD CURRENT with 64-bit dev_t. Skip the test if dev_t is larger than 32-bit, until the bug is fixed in FreeBSD CURRENT. (cherry picked from commit 12953ffe12ac781332b384c36b25d12216b1db62)
* bpo-31028: Fix test_pydoc when run directly (#2864) (#2910)Victor Stinner2017-07-271-1/+1
| | | | | | | | | | | * bpo-31028: Fix test_pydoc when run directly Fix get_pydoc_link() of test_pydoc to fix "./python Lib/test/test_pydoc.py": get the absolute path to __file__ to prevent relative directories. * Use realpath() instead of abspath() (cherry picked from commit fd46561167af6cd697191dd7ebb8c2fef5ad6493)
* [3.6] bpo-31003: IDLE - Add more tests for General tab (GH-2859) (#2906)Terry Jan Reedy2017-07-273-198/+379
| | | | | | | * In configdialog: Document causal pathways in create_page_general. Move related functions to follow this. Simplify some attribute names. * In test_configdialog: Add tests for load and helplist functions. Coverage for the general tab is now complete, and 63% overall. (cherry picked from commit 2bc8f0e)