summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30723: IDLE -- Enhance parenmatch; add style, flash, and help (#2306)wohlganger2017-06-283-72/+91
| | | | | | | | | * Add 'parens' style to highlight both opener and closer. * Make 'default' style, which is not default, a synonym for 'opener'. * Make time-delay work the same with all styles. * Add help for config dialog extensions tab, including parenmatch. * Add new tests. Original patch by Charles Wohlganger.
* bpo-29512: Add test.bisect, bisect failing tests (#2452)Victor Stinner2017-06-281-0/+167
| | | | | | Add a new "python3 -m test.bisect" tool to bisect failing tests. It can be used to find which test method(s) leak references, leak files, etc.
* bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). (#2285)Serhiy Storchaka2017-06-271-2/+2
| | | | | Raise a ValueError if the second argument is NULL and the wchar_t\* string contains null characters.
* bpo-30674: IDLE: add docstrings to grep.py (#2213)csabella2017-06-271-12/+54
| | | Patch by Cheryl Sabella
* bpo-21519: IDLE basic custom key entry better detects duplicates. (#2428)terryjreedy2017-06-272-7/+13
|
* bpo-29910: IDLE no longer deletes a character after commenting out a region ↵Serhiy Storchaka2017-06-2710-16/+45
| | | | | | | | | | | (#825) This happened because shortcut has a class binding and 'break' was not returned. Fix other potential conflicts between IDLE and default key bindings. * Add news item * Update NEWS
* bpo-24813: IDLE: Add build bitness to About Idle title (#2380)csabella2017-06-272-6/+24
| | | Patch by Cheryl Sabella.
* bpo-30776: reduce regrtest -R false positives (#2422)Victor Stinner2017-06-272-21/+57
| | | | | | | | | | | | | | * Change the regrtest --huntrleaks checker to decide if a test file leaks or not. Require that each run leaks at least 1 reference. * Warmup runs are now completely ignored: ignored in the checker test and not used anymore to compute the sum. * Add an unit test for a reference leak. Example of reference differences previously considered a failure (leak) and now considered as success (success, no leak): [3, 0, 0] [0, 1, 0] [8, -8, 1]
* bpo-30728: IDLE: Refactor configdialog to PEP8 names (#2307)csabella2017-06-262-828/+837
| | | | Also, change '*' in the tkinter import to an explicit list of names. Patch by Cheryl Sabella.
* bpo-30532: Fix whitespace folding in certain casesJoel Hillacre2017-06-262-3/+13
| | | Leading whitespace was incorrectly dropped during folding of certain lines in the _header_value_parser's folding algorithm. This makes the whitespace handling code consistent.
* bpo-30764: regrtest: add --fail-env-changed option (#2402)Victor Stinner2017-06-263-14/+52
| | | | | | | | | | | | * bpo-30764: regrtest: change exit code on failure * Exit code 2 if failed tests ("bad") * Exit code 3 if interrupted * bpo-30764: regrtest: add --fail-env-changed option If the option is set, mark a test as failed if it alters the environment, for example if it creates a file without removing it.
* bpo-30764: test_subprocess uses SuppressCrashReport (#2405)Victor Stinner2017-06-261-19/+22
| | | | | bpo-30764, bpo-29335: test_child_terminated_in_stopped_state() of test_subprocess now uses support.SuppressCrashReport() to prevent the creation of a core dump on FreeBSD.
* bpo-30523: regrtest --list-cases --match (#2401)Victor Stinner2017-06-263-15/+32
| | | | | | | * regrtest --list-cases now supports --match and --match-file options. Example: ./python -m test --list-cases -m FileTests test_os * --list-cases now also sets support.verbose to False to prevent messages to stdout when loading test modules. * Add support._match_test() private function.
* bpo-6739: IDLE: Check for valid keybinding in config_keys (#2377)csabella2017-06-262-26/+115
| | | | | | Verify user-entered key sequences by trying to bind them with tk. Add tests for all 3 validation functions. Original patch by G Polo. Tests added by Cheryl Sabella.
* bpo-30746: Port more tests for os.spawnvpe() and os.execve() from 2.7. (#2394)Serhiy Storchaka2017-06-251-9/+36
|
* bpo-30746: Prohibited the '=' character in environment variable names (#2382)Serhiy Storchaka2017-06-252-0/+64
| | | | in `os.putenv()` and `os.spawn*()`.
* Fix bpo-30596: Add close() method to multiprocessing.Process (#2010)Antoine Pitrou2017-06-247-8/+95
| | | | | | | | | | * Fix bpo-30596: Add close() method to multiprocessing.Process * Raise ValueError if close() is called before the Process is finished running * Add docs * Add NEWS blurb
* Fix a typo in a comment in coroutines.py (GH-2267)Johan de Jager2017-06-241-1/+1
| | | defiend -> defined
* bpo-24813: IDLE: Add default title to help_about (#2366)csabella2017-06-244-9/+33
| | | Patch by Cheryl Sabella.
* bpo-30664: The description of a unittest subtest now preserves the (#2265)Serhiy Storchaka2017-06-232-7/+26
| | | | order of keyword arguments of TestCase.subTest().
* bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268)Alexandru Ardelean2017-06-231-2/+3
| | | | | Bug didn't manifest itself when importing a module with source as .py files are always the first on the search path. The issue only showed up in bytecode-only packages where the calculated file path would be ``__init__.py/__init__.pyc``. Patch by Alexandru Ardelean.
* bpo-30730: Prevent environment variables injection in subprocess on Windows. ↵Serhiy Storchaka2017-06-232-2/+46
| | | | | | (#2325) Prevent passing other invalid environment variables and command arguments.
* bpo-24813: IDLE: Add icon to help_about (#2335)csabella2017-06-232-4/+19
| | | Patch by Cheryl Sabella
* bpo-21071: struct.Struct.format type is now str (#845)Victor Stinner2017-06-231-0/+8
|
* bpo-30604: Skip CoExtra tests if ctypes is missing (#2356)Victor Stinner2017-06-231-3/+6
|
* bpo-30727: Fix a race condition in test_threading. (#2334)Serhiy Storchaka2017-06-231-5/+14
|
* bpo-30736: upgrade to Unicode 10.0 (#2344)Benjamin Peterson2017-06-231-2/+2
| | | Straightforward. While we're at it, though, strip trailing whitespace from generated tables.
* bpo-29212: Fix the ugly repr() ThreadPoolExecutor thread name. (#2315)Gregory P. Smith2017-06-222-5/+10
| | | | | | | bpo-29212: Fix the ugly ThreadPoolExecutor thread name. Fixes the newly introduced ugly default thread name for concurrent.futures thread.ThreadPoolExecutor threads. They'll now resemble the old <=3.5 threading default Thread-x names by being named ThreadPoolExecutor-y_n.
* Fix typo in idlelib.config_key.py (#2322)terryjreedy2017-06-221-1/+1
|
* bpo-30604: clean up co_extra support (#2144)Dino Viehland2017-06-211-3/+100
| | | bpo-30604: port fix from 3.6 dropping binary compatibility tweaks
* bpo-30616: Functional API of enum allows to create empty enums. (#2304)Dong-hee Na2017-06-212-1/+21
| | | | | | | | * bpo-30616: Functional API of enum allows to create empty enums. * Update NEWS move addition to avoid conflict
* Fix trivial typo in idlelib/config.py (GH-2309)KunYuChen2017-06-211-1/+1
| | | Comceptually -> Conceptually
* Fix trivial typo in json module docstring (GH-2274)dong-jy2017-06-201-1/+1
|
* bpo-29755: Fixed the lgettext() family of functions in the gettext module. ↵Serhiy Storchaka2017-06-202-26/+146
| | | | | | | | (#2266) They now always return bytes. Updated the gettext documentation.
* bpo-30597: Show expected input in custom 'print' error message. (#2009)Sanyam Khurana2017-06-201-0/+28
|
* urllib: Simplify splithost by calling into urlparse. (#1849)postmasters2017-06-202-13/+40
| | | | | | | | The current regex based splitting produces a wrong result. For example:: http://abc#@def Web browsers parse that URL as ``http://abc/#@def``, that is, the host is ``abc``, the path is ``/``, and the fragment is ``#@def``.
* bpo-30565: Add PYTHONCOERCECLOCALE=warn runtime flag (GH-2260)Nick Coghlan2017-06-181-78/+130
| | | | | | | | | | | | - removes PY_WARN_ON_C_LOCALE build time flag - locale coercion and compatibility warnings are now always compiled in, but are off by default - adds PYTHONCOERCECLOCALE=warn runtime option to aid in debugging potentially locale related compatibility problems Due to not-yet-resolved test failures on *BSD systems (including Mac OS X), this also temporarily disables UTF-8 as a locale coercion target, and skips testing the interpreter's behavior in the POSIX locale.
* bpo-30629: Remove second call of str.lower() in html.parser.parse_endtag. ↵Motoki Naruse2017-06-171-1/+1
| | | | | | (#2099) elem is the result of .lower() 6 lines above the handle_endtag call. Patch by Motoki Naruse
* bpo-30523: Add --list-cases unittest (#2243)Louie Lu2017-06-161-1/+17
| | | | | | | | * bpo-30523: Add --list-cases unittest * Addressed haypo's request * Addressed haypo's request
* bpo-30682: Removed a too-strict assertion that failed for certain f-strings. ↵ericvsmith2017-06-161-0/+6
| | | | | | (#2232) This caused a segfault on eval("f'\\\n'") and eval("f'\\\r'") in debug build.
* bpo-30523: regrtest: Add --list-cases option (#2238)mlouielu2017-06-163-8/+44
| | | | | | | | | | | * bpo-30523: regrtest: Add --list-cases option * bpo-30523: Enhance --list-cases * Add get_abs_module() function, use it in list_cases() * list_cases() now logs skipped tests into stderr * Remove unused doctest
* bpo-29783: Replace codecs.open() with io.open() (#599)Victor Stinner2017-06-164-34/+16
|
* Add IDLE items to NEWS and idlelib/NEWS.txt (#2239)terryjreedy2017-06-161-0/+14
|
* bpo-30620: Remove dead lines from textwrap.dedent (GH-2064)Jonathan Eunice2017-06-161-2/+0
|
* bpo-30603: add tests to textwrap.dedent (GH-2206)Jonathan Eunice2017-06-161-0/+11
| | | | | * test dedent with declining indent level * add textwrap.dedent test cases
* bpo-20627: Fix error message when keyword arguments are used (#2115)Sylvain2017-06-151-0/+26
|
* bpo-28180: Standard stream & FS encoding differ on Mac OS X (GH-2208)Nick Coghlan2017-06-151-21/+37
| | | | | | | | | In the C locale on Mac OS X, the default filesystem encoding used for operating system interfaces is UTF-8, but the default encoding used on the standard streams is still ASCII. Setting the POSIX locale also behaves differently from setting other locales on Mac OS X, so skip that in the test suite for now.
* bpo-30284: Fix regrtest for out of tree build (#1481)Victor Stinner2017-06-141-1/+7
| | | | | | | | Use a build/ directory in the build directory, not in the source directory, since the source directory may be read-only and must not be modified. Fallback on the source directory if the build directory is not available (missing "abs_builddir" sysconfig variable).
* bpo-30436: Raise ModuleNotFoundError for importlib.util.find_spec() when ↵Milan Oberkirch2017-06-143-4/+15
| | | | | parent isn't a package (GH-1899) Previously AttributeError was raised, but that's not very reflective of the fact that the requested module can't be found since the specified parent isn't actually a package.
* bpo-15786: Fix IDLE autocomplete return problem. (#2198)terryjreedy2017-06-141-1/+2
| | | Before, <return> would not, for instance, complete 're.c' to 're.compile' even with 'compile' highlighted. Now it does. Before, <return> was inserted into text, which in Shell meant compile() and possibly execute. Now cursor is left after completion.