summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.6] bpo-29512, bpo-30776: Backport regrtest enhancements from master to ↵Victor Stinner2017-06-302-10/+170
| | | | | | | | | | | | | | | | | 3.6 (#2513) * bpo-29512: Add test.bisect, bisect failing tests (#2452) 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. (cherry picked from commit 84d9d14a1fa395fbd21262ba195490be25a7b3bc) * bpo-30776: regrtest: reduce memleak false positive (#2484) Only report a leak if each run leaks at least one memory block. (cherry picked from commit beeca6e1e5fd01531b1db7059498b13d07dca525)
* bpo-30280: Cleanup threads in ayncio tests (#2501) (#2511)Victor Stinner2017-06-302-5/+9
| | | | | | | | | | | | | | | | | * bpo-30280: asyncio now cleans up threads asyncio base TestCase now uses threading_setup() and threading_cleanup() of test.support to cleanup threads. * asyncio: Fix TestBaseSelectorEventLoop cleanup bpo-30280: TestBaseSelectorEventLoop of test.test_asyncio.test_selector_events now correctly closes the event loop: cleanup its executor to not leak threads. Don't override the close() method of the event loop, only override the_close_self_pipe() method. (cherry picked from commit b9030674624c181d6e9047cdb14ad65bb6c84c66)
* bpo-30813: Fix unittest when hunting refleaks (#2502) (#2505)Victor Stinner2017-06-301-0/+6
| | | | | | | bpo-11798, bpo-16662, bpo-16935, bpo-30813: Skip test_discover_with_module_that_raises_SkipTest_on_import() and test_discover_with_init_module_that_raises_SkipTest_on_import() of test_unittest when hunting reference leaks using regrtest. (cherry picked from commit e4f9a2d2be42d5a2cdd624f8ed7cdf5028c5fbc3)
* bpo-30812: Fix test_warnings, restore _showwarnmsg (#2504) (#2507)Victor Stinner2017-06-301-4/+9
| | | | | bpo-26568, bpo-30812: Fix test_showwarnmsg_missing(): restore the attribute after removing it. (cherry picked from commit 7eebeb8fb84e2a9cb73903a08c59cf1d3b32cee0)
* [3.6] bpo-30807: signal.setitimer() may disable the timer by mistake ↵Antoine Pitrou2017-06-301-0/+9
| | | | | | | | (GH-2493) (#2497) * bpo-30807: signal.setitimer() may disable the timer by mistake * Add NEWS blurb (cherry picked from commit 729780a810bbcb12b245a1b652302a601fc9f6fd)
* [3.6] bpo-30495: IDLE: improve textview with docstrings, PEP8 names, more ↵terryjreedy2017-06-295-100/+139
| | | | | | | | tests. (GH-2283) (#2496) Split TextViewer class into ViewWindow, ViewFrame, and TextFrame classes so that instances of the latter two can be placed with other widgets within a multiframe window. Patch by Cheryl Sabella. (cherry picked from commit 42bc8be)
* [3.6] Clear potential ref cycle between Process and Process target (GH-2470) ↵Antoine Pitrou2017-06-282-0/+21
| | | | | | | | | | | (#2471) * Clear potential ref cycle between Process and Process target Besides Process.join() not being called, this was an indirect cause of bpo-30775. The threading module already does this. * Add issue reference. (cherry picked from commit 79d37ae979a65ada0b2ac820279ccc3b1cd41ba6)
* [3.6] bpo-30775: Fix refleaks in test_multiprocessing (GH-2467) (#2468)Antoine Pitrou2017-06-281-2/+17
| | | | Forgetting to call Process.join() can keep some resources alive. (cherry picked from commit a79f8faccf5e26f55e8b9496ad49d2071b5e299c)
* [3.6] bpo-13617: Reject embedded null characters in wchar* strings. ↵Serhiy Storchaka2017-06-288-1/+35
| | | | | | | | | | (GH-2302) (#2462) Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters.. (cherry picked from commit f7eae0adfcd4c50034281b2c69f461b43b68db84)
* [3.6] bpo-24813: IDLE tagline is Integrated Development and Learning ↵terryjreedy2017-06-281-1/+1
| | | | | | Environment (GH-2451) (#2461) Patch by Mark Roseman (cherry picked from commit 592eda1)
* [3.6] bpo-30723: IDLE -- Enhance parenmatch; add style, flash, and help ↵terryjreedy2017-06-283-72/+91
| | | | | | | | | | | (GH-2306) (#2460) * 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. (cherry picked from commit fae2c35)
* [3.6] bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). ↵Serhiy Storchaka2017-06-271-2/+2
| | | | | | | (GH-2285) (#2443) Raise a ValueError if the second argument is NULL and the wchar_t\* string contains null characters.. (cherry picked from commit e613e6add5f07ff6aad5802924596b631b707d2a)
* [3.6] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2441)Victor Stinner2017-06-275-49/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-30523: regrtest --list-cases --match (#2401) * 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. (cherry picked from commit ace56d583664f855d89d1219ece7c21c2fddcf30) * bpo-30764: regrtest: add --fail-env-changed option (#2402) * 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. (cherry picked from commit 63f54c68936d648c70ca411661e4208329edcf26) * bpo-30776: reduce regrtest -R false positives (#2422) * 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] (cherry picked from commit 48b5c422ffb03affb00c184b9a99e5537be92732)
* [3.6] bpo-30674: IDLE: add docstrings to grep.py (GH-2213) (#2434)terryjreedy2017-06-271-12/+54
| | | | Patch by Cheryl Sabella (cherry picked from commit 65474b9)
* [3.6] bpo-21519: IDLE basic custom key entry better detects duplicates. ↵terryjreedy2017-06-272-7/+13
| | | | | | (GH-2428) (#2433) Original patch by Saimadhav Heblikar. (cherry picked from commit 44913e5)
* [3.6] bpo-29910: IDLE no longer deletes a character after commenting out a ↵terryjreedy2017-06-2710-16/+45
| | | | | | | | | | | region (GH-825) (#2429) 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 (cherry picked from commit 213ce12)
* [3.6] bpo-24813: IDLE: Add build bitness to About Idle title (GH-2380) (#2426)terryjreedy2017-06-272-6/+24
| | | | Patch by Cheryl Sabella. (cherry picked from commit 9a02ae3)
* [3.6] bpo-30728: IDLE: Refactor configdialog to PEP8 names (GH-2307) (#2421)terryjreedy2017-06-272-828/+837
| | | | | Also, change '*' in the tkinter import to an explicit list of names. Patch by Cheryl Sabella. (cherry picked from commit bac7d33)
* bpo-30764: test_subprocess uses SuppressCrashReport (#2405) (#2410)Victor Stinner2017-06-261-26/+25
| | | | | | 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. (cherry picked from commit cdee3f14f7f4c995e7eedb0bf6a67e260c739f7d)
* [3.6] bpo-6739: IDLE: Check for valid keybinding in config_keys (GH-2377) ↵terryjreedy2017-06-262-26/+115
| | | | | | | | (#2397) 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. (cherry picked from commit 8c78aa7)
* [3.6] bpo-30746: Prohibited the '=' character in environment variable names ↵Serhiy Storchaka2017-06-252-0/+91
| | | | | | | (GH-2382) (#2391) in `os.putenv()` and `os.spawn*()`.. (cherry picked from commit 77703942c5997dff00c48f10df1b29b11645624c)
* [3.6] bpo-30616: Functional API of enum allows to create empty enums. ↵Dong-hee Na2017-06-242-1/+21
| | | | (#2304) (#2324)
* [3.6] Fix a typo in a comment in coroutines.py (GH-2267) (GH-2370)Mariatta2017-06-241-1/+1
| | | | defiend -> defined (cherry picked from commit cab469245d7635447c5e04fa6ed860b067dfc26b)
* [3.6] bpo-24813: IDLE: Add default title to help_about (GH-2366) (#2369)terryjreedy2017-06-244-9/+33
| | | | Patch by Cheryl Sabella. (cherry picked from commit 18ede06)
* [3.6] bpo-30645: don't append to an inner loop path in imp.load_package() ↵Brett Cannon2017-06-231-2/+3
| | | | | | | | | (GH-2268) (#2364) 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. (cherry picked from commit c38e32a10061a7c6d54e7e53ffabf7af7998f045)
* [3.6] bpo-30730: Prevent environment variables injection in subprocess on ↵Serhiy Storchaka2017-06-232-2/+46
| | | | | | Windows. (GH-2325) (#2360) Prevent passing other invalid environment variables and command arguments.. (cherry picked from commit d174d24a5d37d1516b885dc7c82f71ecd5930700)
* [3.6] bpo-24813: IDLE: Add icon to help_about (GH-2335) (#2359)terryjreedy2017-06-232-4/+19
| | | | Patch by Cheryl Sabella (cherry picked from commit d352d68)
* bpo-30604: Skip CoExtra tests if ctypes is missing (#2356) (#2358)Victor Stinner2017-06-231-3/+6
| | | (cherry picked from commit a4b091e135ccf345cfafdd8477aef897c5214f82)
* [3.6] bpo-30727: Fix a race condition in test_threading. (GH-2334) (#2351)Serhiy Storchaka2017-06-231-5/+14
| | | (cherry picked from commit 32cb968)
* [3.6] Fix typo in idlelib.config_key.py (GH-2322) (#2323)terryjreedy2017-06-221-1/+1
| | | (cherry picked from commit a0e911b)
* [3.6] Fix trivial typo in idlelib/config.py (GH-2309) (#2321)terryjreedy2017-06-221-1/+1
| | | | Comceptually -> Conceptually (cherry picked from commit f3e8209)
* [3.6] bpo-29755: Fixed the lgettext() family of functions in the gettext ↵Serhiy Storchaka2017-06-202-26/+146
| | | | | | | | module. (GH-2266) (#2297) They now always return bytes. Updated the gettext documentation.. (cherry picked from commit 26cb4657bcc9a7adffa95798ececb588dddfeadb)
* bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2289)Victor Stinner2017-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``. (cherry picked from commit 90e01e50ef8a9e6c91f30d965563c378a4ad26de)
* bpo-29887: test_normalization handles PermissionError (#1196) (#2275)Victor Stinner2017-06-191-0/+3
| | | | | Skip test_normalization.test_main() if download raises a permission error. (cherry picked from commit d13d54748d3a7db023d9db37223ea7d40bb8f8e3)
* [3.6] bpo-29887: Test normalization now fails if download fails (GH-905) (#2271)Mariatta2017-06-191-4/+9
| | | | | | | | | | | | * test_normalization fails if download fails bpo-29887. The test is still skipped if "-u urlfetch" option is not passed to regrtest (python3 -m test -u urlfetch test_normalization). * Fix ResourceWarning in test_normalization bpo-29887: Fix ResourceWarning in test_normalization if tests are interrupted by CTRL+c. (cherry picked from commit 722a3af092b94983aa26f5e591fb1b45e2c2a0ff)
* Update pydoc topics for v3.6.2rc1Ned Deily2017-06-171-110/+122
|
* [email] bpo-29478: Fix passing max_line_length=None from Compat32 policy ↵Mariatta2017-06-162-2/+13
| | | | | | | (GH-595) (GH-2233) If max_line_length=None is specified while using the Compat32 policy, it is no longer ignored.. (cherry picked from commit b459f7482612d340b88b62edc024628595ec6337)
* [3.6] bpo-30682: Removed a too-strict assertion that failed for certain ↵Serhiy Storchaka2017-06-161-0/+6
| | | | | | f-strings. (GH-2232) (#2242) This caused a segfault on eval("f'\\\n'") and eval("f'\\\r'") in debug build.. (cherry picked from commit 11e97f2f80bf65cc828c127eafc95229df35d403)
* Synchronize libregrtest from master to 3.6 (#2244)Victor Stinner2017-06-167-58/+228
| | | | | | | * bpo-30523: regrtest: Add --list-cases option (#2238) * bpo-30284: Fix regrtest for out of tree build (#1481) * bpo-30540: regrtest: add --matchfile option (#1909) * bpo-30258: regrtest: Fix run_tests_multiprocess() (#1479) * bpo-30263: regrtest: log system load (#1452)
* [3.6]Add IDLE items to NEWS and idlelib/NEWS.txt (#2239) (#2240)terryjreedy2017-06-161-1/+15
|
* bpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a ↵Mariatta2017-06-164-26/+109
| | | | | 'trailer', e.g. zip()[x] (GH-24) (GH-2235) (cherry picked from commit 93b4b47e3a720171d67f3b608de406aef462835c)
* bpo-23890: Fix ref cycle in TestCase.assertRaises (#858)Victor Stinner2017-06-152-22/+43
| | | | | unittest.TestCase.assertRaises() now manually breaks a reference cycle to not keep objects alive longer than expected. (cherry picked from commit bbd3cf8f1ef1e91a8d6dac6411e18b4b9084abf5)
* bpo-30149: Fix partialmethod without explicit self parameter (#1308) (#1662)Dong-hee Na2017-06-152-4/+44
|
* [3.6] bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and ↵Serhiy Storchaka2017-06-152-10/+33
| | | | | | | | | | v6. (GH-879) (#2217) the original logic was just comparing the network address but this is wrong because if the network address is equal then we need to compare the ip address for breaking the tie add more ip_interface comparison tests. (cherry picked from commit 7bd8d3e794782582a4ad1c9749424fff86802c3e)
* [3.6] bpo-30605: Fix compiling binary regexs with BytesWarnings enabled. ↵Serhiy Storchaka2017-06-152-3/+15
| | | | | | (GH-2016) (#2214) Running our unit tests with `-bb` enabled triggered this failure.. (cherry picked from commit 171b9a354e816eebc6d4c3a8553303942e9c5025)
* bpo-30231: Remove skipped test_imaplib tests (#1419) (#2192)Victor Stinner2017-06-141-20/+10
| | | | | | | | | The public cyrus.andrew.cmu.edu IMAP server (port 993) doesn't accept TLS connection using our self-signed x509 certificate. Remove the two tests which are already skipped. Write a new test_certfile_arg_warn() unit test for the certfile deprecation warning. (cherry picked from commit b18563da8803433509e9a0e29718e0271014659f)
* [3.6]bpo-15786: Fix IDLE autocomplete return problem. (#2198) (#2199)terryjreedy2017-06-141-1/+2
| | | | Before, Enter would not, for instance, complete 're.c' to 're.compile' even with 'compile' highlighted. Now it does. Before, '\n' was inserted into text, which in Shell meant compile() and possibly execute. Now cursor is left after completion. (cherry picked from commit 32fd874afe55e396e3c9a5af35e7bb3d8e0b8f02)
* bpo-15786: IDLE: Fix mouse clicks on autocompletetion window (#1811) (#2187)terryjreedy2017-06-141-8/+50
| | | | Patch by Louie Lu. (cherry picked from commit 778b484145edfd0d9b65129322d3295bed8eb71a)
* [3.6] bpo-30649: test_os tolerates 50 ms delta for utime (#2156) (#2175)Victor Stinner2017-06-141-1/+6
| | | | | | | | | | | | | | | | | | * bpo-30649: test_os tolerates 50 ms delta for utime (#2156) On Windows, tolerate a delta of 50 ms instead of 20 ms in test_utime_current() and test_utime_current_old() of test_os. On other platforms, reduce the delta from 20 ms to 10 ms. (cherry picked from commit c94caca65cd38802243b5279cf85ee44ffb2abb8) * bpo-30649: Revert utime delta in test_os (#2176) PPC64 Fedora 3.x buildbot requires at least a delta of 14 ms: revert the utime delta to 20 ms. I tried 10 ms, but test_os failed on the PPC64 Fedora 3.x buildbot. (cherry picked from commit 3402f7268897db15053866e1e68404cfa0e02706)
* [3.6]bpo-25514: Improve IDLE's connection refused message (#2177) (#2178)terryjreedy2017-06-143-35/+75
| | | | When IDLE fail to start because the socket connection fails, direct people to a new subsection of the IDLE doc listing various causes and remedies. (cherry picked from commit 188aedf8bb623d41302e10503268b0852ea91134)