summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.6] bpo-28556: Minor updates to typing module (GH-3550) (#3558)Miss Islington (bot)2017-09-142-50/+36
| | | | | * Copy changes to typing from upstream repo * Add NEWS entry (cherry picked from commit 65bc62052fe5d550cb14c0033e8a2550618fb7b9)
* [3.6] bpo-31234: Fix dangling thread in test_ftp/poplib (#3554)Victor Stinner2017-09-132-1/+17
| | | | | | | | | | | | | | | * bpo-31234: Fix dangling thread in test_ftp/poplib (#3540) Explicitly clear the server attribute in test_ftplib and test_poplib to prevent dangling thread. (cherry picked from commit d403a29c0055de6b03ed5ae7a5c564e1c95a5950) * bpo-31234: Fix dangling thread in test_ftplib (#3544) Clear also self.server_thread attribute in TestTimeouts.tearDown(). (cherry picked from commit b157ce1e58b03988ce4340a55d0b856125833cc5)
* [3.6] bpo-31234, socket.create_connection(): Fix ref cycle (GH-3546) (#3552)Miss Islington (bot)2017-09-131-0/+2
| | | (cherry picked from commit acb9fa79fa6453c2bbe3ccfc9cad2837feb90093)
* [3.6] bpo-31448, test_poplib: Fix ResourceWarning (GH-3542) (#3543)Miss Islington (bot)2017-09-131-3/+3
| | | | Call POP3.close(), don't close close directly the sock attribute. (cherry picked from commit d165e14e29b45a22450263722f5c2c386c3a748a)
* [3.6] bpo-31234: test_httpservers joins the server thread (GH-3188) (#3536)Miss Islington (bot)2017-09-131-0/+1
| | | (cherry picked from commit 830d7d2936434ace113822294acce82f62cde41b)
* [3.6] bpo-31234: test_threaded_import: fix test_side_effect_import() ↵Miss Islington (bot)2017-09-131-1/+3
| | | | | | | (GH-3189) (#3537) * Don't leak the module into sys.modules * Avoid dangling thread (cherry picked from commit 41bbd82b6b6a887e893974fa5cdaae7782ae6cac)
* [3.6] bpo-31323: Fix reference leak in test_ssl (GH-3263) (#3538)Miss Islington (bot)2017-09-131-2/+6
| | | | | Store exceptions as string rather than object to prevent reference cycles which cause leaking dangling threads. (cherry picked from commit 868710158910fa38e285ce0e6d50026e1d0b2a8c)
* [3.6] bpo-31249: Fix test_concurrent_futures dangling thread (GH-3521) (#3522)Miss Islington (bot)2017-09-131-0/+3
| | | | | ProcessPoolShutdownTest.test_del_shutdown() now closes the call queue and joins its thread, to prevent leaking a dangling thread. (cherry picked from commit 3bcf157c115ba3e48bce62ac8cb13c703475a113)
* [3.6] bpo-31234: Enhance test_thread.test_forkinthread() (GH-3516) (#3519)Miss Islington (bot)2017-09-121-12/+19
| | | | | | | | | | | | * test_thread.test_forkinthread() now waits until the thread completes. * Check the status in the test method, not in the thread function * Don't ignore RuntimeError anymore: since the commit 346cbd351ee0dd3ab9cb9f0e4cb625556707877e (bpo-16500, os.register_at_fork(), os.fork() cannot fail anymore with RuntimeError. * Replace 0.01 literal with a new POLL_SLEEP constant * test_forkinthread(): test if os.fork() exists rather than testing the platform. (cherry picked from commit a15d155aadfad232158f530278505cdc6f326f93)
* [3.6] bpo-31250: test_asyncio: fix dangling threads (#3517)Victor Stinner2017-09-124-4/+12
| | | | | | | | | | | | | | | | | | | | | | * bpo-31250, test_asyncio: fix dangling threads (#3252) * Explicitly call shutdown(wait=True) on executors to wait until all threads complete to prevent side effects between tests. * Fix test_loop_self_reading_exception(): don't mock loop.close(). Previously, the original close() method was called rather than the mock, because how set_event_loop() registered loop.close(). (cherry picked from commit 16432beadb8eba079c9786cc0c0eaacfd9fd2f7b) * bpo-31250, test_asyncio: fix EventLoopTestsMixin.tearDown() (#3264) Call doCleanups() to close the loop after calling executor.shutdown(wait=True): see TestCase.set_event_loop() of asyncio.test_utils. Replace also gc.collect() with support.gc_collect(). (cherry picked from commit e8a533fbc734af6eeb389202ba6c6e9c2548027f)
* [3.6] bpo-31421: Document how IDLE runs tkinter programs. (GH-3513) (#3514)Miss Islington (bot)2017-09-121-10/+30
| | | | | IDLE calls tcl/tk update in the background in order to make live interaction and experimentatin with tkinter applications much easier. (cherry picked from commit 98758bc67fb39b74bab368bef8ff3b34554c77c8)
* [3.6] bpo-27099: Finish updating IDLE doc and help text. (GH-3510) (#3511)Miss Islington (bot)2017-09-121-16/+7
| | | | As needed for the conversion of extensions to features. (cherry picked from commit adb4cd2a2a59019ac6955e0fd531c9fec9258962)
* [3.6] bpo-31416: Fix assertion failures in case of a bad warnings.filters or ↵Serhiy Storchaka2017-09-121-0/+15
| | | | | | warnings.defaultaction. (GH-3496) (#3509) Patch by Oren Milman.. (cherry picked from commit 9d984fd2b097c8c29479d1c3eb740995fe1ccb0d)
* [3.6] bpo-31373: remove overly strict float range checks (GH-3486) (#3495)Benjamin Peterson2017-09-122-0/+12
| | | | | | This undoes a853a8ba7850381d49b284295dd6f0dc491dbe44 except for the pytime.c parts. We want to continue to allow IEEE 754 doubles larger than FLT_MAX to be rounded into finite floats. Tests were added to very this behavior. (cherry picked from commit 2bb69a5b4e7f96cb35d1b28aa7b7b3974b351f59)
* [3.6] bpo-30928: Update idlelib/NEWS.txt to 2017-09-11. (GH-3503) (#3504)Miss Islington (bot)2017-09-111-0/+46
| | | (cherry picked from commit 8239fd704637d7cbf59273883fbe487fc0f568fc)
* [3.6] bpo-31414: IDLE -- fix tk entry box tests by deleting first. (GH-3501) ↵Miss Islington (bot)2017-09-111-11/+17
| | | | | | | (#3502) Adding to an int entry is not the same as deleting and inserting because int('') will fail. (cherry picked from commit 667522efa8fedfb57fd89d7335d7dfd270f274d5)
* [3.6] bpo-31411: Prevent raising a SystemError in case warnings.onceregistry ↵Serhiy Storchaka2017-09-111-0/+11
| | | | | is not a dictionary. (GH-3485). (#3494) (cherry picked from commit 252033d50effa08046ac34fcc406bc99796ab88b)
* [3.6] bpo-30781: IDLE: Fix help button on configdialog (GH-3238) (#3489)Miss Islington (bot)2017-09-111-3/+3
| | | | | This fixes an omission in the ttk conversion patch for this issue, hence no new news. Patch by Cheryl Sabella. (cherry picked from commit 3866d9bbcf808cea98b3d00007f9f246b83858ce)
* Backport docstring improvements to OrderedDict. (GH-3470)Henk-Jaap Wagenaar2017-09-111-2/+2
|
* [3.6] bpo-27099: IDLE - Convert built-in extensions to regular features ↵Terry Jan Reedy2017-09-1119-252/+428
| | | | | | | | | | | | | | | | | | | | | | | (GH-2494) (#3487) About 10 IDLE features were implemented as supposedly optional extensions. Their different behavior could be confusing or worse for users and not good for maintenance. Hence the conversion. The main difference for users is that user configurable key bindings for builtin features are now handled uniformly. Now, editing a binding in a keyset only affects its value in the keyset. All bindings are defined together in the system-specific default keysets in config- extensions.def. All custom keysets are saved as a whole in config- extension.cfg. All take effect as soon as one clicks Apply or Ok. The affected events are '<<force-open-completions>>', '<<expand-word>>', '<<force-open-calltip>>', '<<flash-paren>>', '<<format-paragraph>>', '<<run-module>>', '<<check-module>>', and '<<zoom-height>>'. Any (global) customizations made before 3.6.3 will not affect their keyset- specific customization after 3.6.3. and vice versa. Inital patch by Charles Wohlganger, revised by Terry Jan Reedy. (cherry picked from commit 58fc71c)
* [3.6] bpo-26669: Fix nan arg value error in pytime.c (GH-3085) (GH-3467) Miss Islington (bot)2017-09-091-0/+29
| | | | | | * Modify NaN check function and error message * Fix pytime.c when arg is nan * fix whitespace (cherry picked from commit 829dacce4fca60fc3c3367980e75e21dfcdbe6be)
* [3.6] bpo-30822: Deduplicate ZoneInfoTest classes in test_datetime. ↵Miss Islington (bot)2017-09-081-0/+1
| | | | | (GH-2534) (#3405) (cherry picked from commit 34b54873b51a1ebee2a3c57b7205537b4f33128d)
* [3.6] bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3 (GH-1363) (#3444)Christian Heimes2017-09-082-1/+39
| | | | | | | | | | | | | | | | * bpo-29136: Add TLS 1.3 support TLS 1.3 introduces a new, distinct set of cipher suites. The TLS 1.3 cipher suites don't overlap with cipher suites from TLS 1.2 and earlier. Since Python sets its own set of permitted ciphers, TLS 1.3 handshake will fail as soon as OpenSSL 1.1.1 is released. Let's enable the common AES-GCM and ChaCha20 suites. Additionally the flag OP_NO_TLSv1_3 is added. It defaults to 0 (no op) with OpenSSL prior to 1.1.1. This allows applications to opt-out from TLS 1.3 now. Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit cb5b68abdeb1b1d56c581d5b4d647018703d61e3)
* [3.6] bpo-27340: Use memoryview in SSLSocket.sendall() (GH-3384) (#3434)Christian Heimes2017-09-072-5/+16
| | | | | | | | | | | | | | * bpo-27340: Use memoryview in SSLSocket.sendall() SSLSocket.sendall() now uses memoryview to create slices of data. This fix support for all bytes-like object. It is also more efficient and avoids costly copies. Signed-off-by: Christian Heimes <christian@python.org> * Cast view to bytes, fix typo Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit 888bbdc192ec4db888a294ef758cf5510442dc9a)
* [3.6] bpo-22635: Update the getstatusoutput docstring. (GH-3435) (#3439)Miss Islington (bot)2017-09-071-7/+9
| | | | | | To match the documentation updates already made. Also renames the local variable used within to match what it actually holds. (cherry picked from commit 2eb0cb4787d02d995a9bb6dc075983792c12835c)
* [3.6] bpo-30389 Adds detection of VS 2017 to distutils._msvccompiler GH-1632 ↵Steve Dower2017-09-072-29/+94
| | | | (#3425)
* bpo-30465: Fix lineno and col_offset in fstring AST nodes (GH-1800) (gh-3409)Miss Islington (bot)2017-09-071-0/+248
| | | | For f-string ast nodes, fix the line and columns so that tools such as flake8 can identify them correctly. (cherry picked from commit e7c566caf177afe43b57f0b2723e723d880368e8)
* [3.6] bpo-30824: Add mimetype for .json (GH-3048) (#3401)Miss Islington (bot)2017-09-071-0/+1
| | | (cherry picked from commit 8204b903683f9e0f037ccfaa87622716019914d7)
* [3.6] bpo-31340: Change to building with MSVC v141 (included with Visual ↵Steve Dower2017-09-061-9/+13
| | | | Studio 2017) (GH-3311) (#3386)
* [3.6] bpo-31178: Avoid concatenating bytes with str in subprocess error ↵Gregory P. Smith2017-09-062-3/+53
| | | | | | (GH-3066) (#3388) Avoid concatenating bytes with str in the typically rare subprocess error path (exec failed). Includes a mock based unittest to exercise the codepath. (cherry picked from commit 3fc499bca18454b9f432b9b0106cab662bfeb549)
* [3.6] Stop test_xmlrpc from writing to sys.stderr (GH-3359) (#3380)Miss Islington (bot)2017-09-061-0/+4
| | | | | | | | | One test case of test_xmlrpc uses HTTPServer with a subclass of BaseHTTPRequestHandler. The BaseRequestHandler class logs to sys.stderr by default. Override log_message() to not clobber test output. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 3463ee3972e0d14351ee18bce60ecfbf7ac96772)
* [3.6] bpo-29781: Fix SSLObject.version before handshake (GH-3364) (#3381)Christian Heimes2017-09-061-0/+2
| | | | | | | SSLObject.version() now correctly returns None when handshake over BIO has not been performed yet. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 6877111)
* bpo-31350: Optimize get_event_loop and _get_running_loop (GH-3347) (GH-3373)Miss Islington (bot)2017-09-061-6/+4
| | | | | | | | | | | | | | | | * call remove_done_callback in finally section * Optimize get_event_loop and _get_running_loop * rename _loop_pid as loop_pid and add blurb news * rename _loop_pid as loop_pid and add blurb news * add back _RunningLoop * Update 2017-09-05-10-30-48.bpo-31350.dXJ-7N.rst * Update 2017-09-05-10-30-48.bpo-31350.dXJ-7N.rst (cherry picked from commit 80bbe6a7b67f33d0d0976bb8e3e5ba26b6b0e626)
* [3.6] bpo-30662: fixed OrderedDict.__init__ docstring re PEP 468 (GH-2179) ↵Mariatta2017-09-061-3/+1
| | | | | | | | | | | | | | (GH-3370) * fixed OrderedDict.__init__ docstring re PEP 468 * tightened comment and mirrored to C impl * added space after period per marco-buttu * preserved substituted for stable * drop references to Python 3.6 and PEP 468 (cherry picked from commit faa57cbe7074b26807cd7ed89a7b173b5cbf3086)
* [3.6] bpo-31320: No traceback to sys.stderr in test_ssl (GH-3360) (GH-3369)Miss Islington (bot)2017-09-061-1/+4
| | | | | | | | In case PROTOCOL_TLS_SERVER is used for both client context and server context, the test thread dies with OSError. Catch OSError to avoid traceback on sys.stderr Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 305e56c27afce605e5d2f71903a966cf0bb95038)
* bpo-30442: Skips refcount test in test_xml_etree under coverage (#1767) (#3363)Victor Stinner2017-09-061-0/+1
| | | (cherry picked from commit 1de4705d00168afa8c5b6741af02e21fc609af58)
* bpo-30445: Allow appended output in RecursionError message (#3356)Victor Stinner2017-09-051-1/+2
| | | | | | | Running under coverage sometimes causes 'in comparison' to be added to the end of the RecursionError message, which is acceptable. Patched by Maria Mckinley (cherry picked from commit 3480ef9dd3177be8c0d71a74853dca6e5b11fbe1)
* bpo-22536 [3.6] Set filename in FileNotFoundError (#3305)Gregory P. Smith2017-09-042-6/+18
| | | | | | | | | | * [3.6] bpo-22536: Set the filename in FileNotFoundError. (GH-3194) Have the subprocess module set the filename in the FileNotFoundError exception raised on POSIX systems when the executable or cwd are missing. (cherry picked from commit 8621bb5d93239316f97281826461b85072ff6db7) * bpo-22536 [3.6] (GH-3202) skip non-windows tests.
* [3.6] bpo-25674: remove sha256.tbs-internet.com ssl test (GH-3297) (#3300)Christian Heimes2017-09-042-156/+0
| | | | Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 002d64039b60c1a9289f981fe73a5cf91d082136)
* [3.6] bpo-29212: Fix the ugly repr() ThreadPoolExecutor thread name. ↵Gregory P. Smith2017-09-032-5/+10
| | | | | | | | | | (GH-2315) (#3276) 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.. (cherry picked from commit a3d91b43c2851312fb942f31afa12f5961706db6)
* [3.6] Fix a c.f.as_completed() refleak previously introduced in bpo-27144 ↵Antoine Pitrou2017-09-032-8/+20
| | | | | (GH-3270) (#3271) (cherry picked from commit 2ef3760)
* bpo-31185: Fixed miscellaneous errors in asyncio speedup module. (#3076) (#3269)Serhiy Storchaka2017-09-031-8/+37
| | | (cherry picked from commit bca4939d806170c3ca5d05f23710d11a8f1669cf)
* [3.6] bpo-27144: concurrent.futures as_complete and map iterators do not ↵Antoine Pitrou2017-09-013-10/+89
| | | | | | | | keep reference to returned object (GH-1560) (#3266) bpo-27144: concurrent.futures as_complie and map iterators do not keep reference to returned object (cherry picked from commit 97e1b1c81458d2109b2ffed32ffa1eb643a6c3b9)
* bpo-31217: Fix regrtest -R for small integer (#3260) (#3261)Victor Stinner2017-09-011-3/+11
| | | | | | | | | Use a pool of integer objects toprevent false alarm when checking for memory block leaks. Fill the pool with values in -1000..1000 which are the most common (reference, memory block, file descriptor) differences. Co-Authored-By: Antoine Pitrou <pitrou@free.fr> (cherry picked from commit 6c2feabc5dac2f3049b15134669e9ad5af573193)
* bpo-31249: Fix ref cycle in ThreadPoolExecutor (#3253)Victor Stinner2017-09-012-14/+24
| | | [3.6] bpo-31249: Fix ref cycle in ThreadPoolExecutor
* [3.6] bpo-31291: Fixed an assertion failure in ↵Oren Milman2017-08-301-0/+17
| | | | | | zipimport.zipimporter.get_data() (GH-3226) (#3243) if pathname.replace('/', '\\') returns non-string. (cherry picked from commit 631fdee6e61b4ba8ce800f827fecdd536bfb04f3)
* [3.6] bpo-10746: Fix ctypes PEP 3118 type codes for c_long, c_bool, c_int ↵Pauli Virtanen2017-08-301-28/+55
| | | | | | | | | | | | | | | | | | (GH-31) (#3241) Ctypes currently produces wrong pep3118 type codes for several types. E.g. memoryview(ctypes.c_long()).format gives "<l" on 64-bit platforms, but it should be "<q" instead for sizeof(c_long) == 8 The problem is that the '<>' endian specification in the struct syntax also turns on the "standard size" mode, which makes type characters have a platform-independent meaning, which does not match with the codes used internally in ctypes. The struct module format syntax also does not allow specifying native-size non-native-endian items. This commit adds a converter function that maps the internal ctypes codes to appropriate struct module standard-size codes in the pep3118 format strings. The tests are modified to check for this. (cherry picked from commit 07f1658aa09f6798793c473c72b2951b7fefe220)
* [3.6] bpo-31051: Rearrange IDLE condigdialog GenPage into Window, Editor, ↵Terry Jan Reedy2017-08-301-38/+45
| | | | | and Help sections. (GH-3239) (#3240) (cherry picked from commit 390ead)
* [3.6] bpo-31243: Fixed PyArg_ParseTuple failure checks. (GH-3171) (#3233)Oren Milman2017-08-291-0/+20
| | | (cherry picked from commit ba7d7365215d791025d1efd25393c91404f2cfc8)
* [3.6] bpo-30617: IDLE: docstrings and unittest for outwin.py (GH-2046) (#3223)Terry Jan Reedy2017-08-272-62/+274
| | | | Move some data and functions from the class to module level. Patch by Cheryl Sabella. (cherry picked from commit 998f496)