summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 3.6.6rc1v3.6.6rc1Ned Deily2018-06-121-457/+446
|
* bpo-33656: Mention color in idlelib/NEWS.txt entry. (GH-7646)Miss Islington (bot)2018-06-111-4/+5
| | | | | (cherry picked from commit 4b704f29f5a0b6f6d7bd67468ed004bd3a96855d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33656: Add enum name for argument of Windows call. (GH-7642)Miss Islington (bot)2018-06-111-1/+4
| | | | | | Change suggested by Eryk Sun in a comment on PR 7137 after it was merged. (cherry picked from commit fd88f319a4f40682b989b63f0b6378d69465fda4) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137)Miss Islington (bot)2018-06-113-3/+20
| | | | | | | | | | | | | | On Windows 8.1+ or 10, with DPI compatibility properties of the Python binary unchanged, and a monitor resolution greater than 96 DPI, this should make text and lines sharper. It should otherwise have no effect. Using a magnifier, I determined that the improvement comes from horizontal and lines being better lined up with the monitor pixels. I checked that this call causes no problem on any Windows buildbot, including the Win7 buildbots. Unlike most IDLE patches, this one can be easily reverted by users by removing a few lines, at the top of idlelib/pyshell.py. (cherry picked from commit 800415e3df69f494afe9f95a8563ce17609fe1da) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* pypi.python.org -> pypi.org (GH-7613) (GH-7615)Miss Islington (bot)2018-06-111-1/+1
| | | | | (cherry picked from commit 9d6d06e8065d45f375f4a80e2d7e13b032da1f5b) Co-authored-by: Ned Deily <nad@python.org>
* bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) ↵Miss Islington (bot)2018-06-111-2/+2
| | | | | | | | (GH-7607) Before Python 3.6, os.path.abspath(None) used to report an AttributeError which was properly caught inside site.abs_paths, making it ignore __main__, one of sys.modules, which has __file__ and __cached__ set to None. With 3.6, os.path.abspath(None) raises TypeError instead which site.abs_path was not expecting. This resulted in an uncaught exception if a user had PYTHONSTARTUP set and the application called site.main() which a number of third-party programs do. (cherry picked from commit 2487f30d5529948ace26559e274d7cac6abcd1a8) Co-authored-by: Steve Weber <steverweber@gmail.com>
* bpo-33812: Corrected astimezone for naive datetimes. (GH-7578) (GH-7601)Miss Islington (bot)2018-06-102-12/+22
| | | | | | | | | | | | | | | | | | | | | A datetime object d is aware if d.tzinfo is not None and d.tzinfo.utcoffset(d) does not return None. If d.tzinfo is None, or if d.tzinfo is not None but d.tzinfo.utcoffset(d) returns None, d is naive. This commit ensures that instances with non-None d.tzinfo, but d.tzinfo.utcoffset(d) returning None are treated as naive. In addition, C acceleration code will raise TypeError if d.tzinfo.utcoffset(d) returns an object with the type other than timedelta. * Updated the documentation. Assume that the term "naive" is defined elsewhere and remove the not entirely correct clarification. Thanks, Tim. (cherry picked from commit 877b23202b7e7d4f57b58504fd0eb886e8c0b377) Co-authored-by: Alexander Belopolsky <abalkin@users.noreply.github.com>
* bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) (GH-7603)Miss Islington (bot)2018-06-101-19/+20
| | | | | (cherry picked from commit 4ab4695388fb9ec03a14d93e90ce50d832a920ec) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-33610: Update IDLE Code Context doc entry (GH-7597)Miss Islington (bot)2018-06-101-202/+206
| | | | | | Users can now click on context lines. (cherry picked from commit af4b0130d44bf8a1ff4f7b46195d1dc79add444a) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521)Miss Islington (bot)2018-06-092-7/+44
| | | | | | | | | If tests are re-run, use "xxx then yyy" result format (ex: "FAILURE then SUCCESS") to show that some failing tests have been re-run. Add also test_regrtest.test_rerun_fail() test. (cherry picked from commit c45fc7673e23f911639d10d3771ffef7be870c7a) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-30805: Avoid race condition with debug logging (GH-7545)Miss Islington (bot)2018-06-081-2/+4
| | | | | | Supersedes https://github.com/python/cpython/pull/2490 (cherry picked from commit 12f482e0ae33021c04264294f33fa6baa9617cec) Co-authored-by: Yury Selivanov <yury@magic.io>
* bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)Miss Islington (bot)2018-06-082-10/+38
| | | | | | | | - bugfix and test for fragile metavar handling in argparse (see bpo-24089, bpo-14046, bpo-25058, bpo-11874) - also fixes some incorrect tests that did not make 1-element tuples correctly (cherry picked from commit 66f02aa32f1e4adb9f24cf186f8c495399d5ce9b) Co-authored-by: wim glenn <wim.glenn@gmail.com>
* Update idlelib/NEWS.txt to 2018 Jun 8 am. (GH-7517)Miss Islington (bot)2018-06-081-0/+27
| | | | | (cherry picked from commit b1f690294d9bf948d148df3ca0d20ca462d902b3) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33768: IDLE: Clicking on code context line moves it to top of editor ↵Miss Islington (bot)2018-06-082-0/+49
| | | | | | | (GH-7411) (cherry picked from commit 041272b657867f5bec925b19aabf23944125d49b) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() ↵Yury Selivanov2018-06-081-0/+56
| | | | (GH-7467) (GH-7507)
* [3.6] bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() ↵Victor Stinner2018-06-072-2/+6
| | | | | | | | | | | | | | | | | | | | (GH-7462) (GH-7483) * bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462) Fix "<CoroWrapper ...> was never yielded from" warning in PyTask_PyFuture_Tests.test_error_in_call_soon() of test_asyncio.test_tasks. Close manually the coroutine on error. (cherry picked from commit 9f04f0df6fdb27190690bda949d213893d14e807) * Hide a warning in test_asyncio test_cancel_handshake() SslProtoHandshakeTests.test_cancel_handshake() of test_asyncio.test_sslproto: hide a traceback about SSL handshake failure.
* bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)Miss Islington (bot)2018-06-062-8/+21
| | | | | | | | | | | | Substract one because listdir() opens internally a file descriptor to list the content of the /proc/self/fd/ directory. Add test_support.test_fd_count(). Move also MAXFD code before msvcrt.CrtSetReportMode(), to make sure that the report mode is always restored on failure. (cherry picked from commit 492d6424a7ca907c8ec1df21e51062e8f3d88e32) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-33751: Fix test_file. (GH-7378)Miss Islington (bot)2018-06-051-84/+78
| | | | | | | | | testModeStrings and testTruncateOnWindows were depended on a file leaked in other tests. Also improve cleaning up after tests. (cherry picked from commit c2745d2d05546d76f655ab450eb23d1af39e0b1c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.6] bpo-33753: Refactor creating temporary files in test_fileinput. ↵Serhiy Storchaka2018-06-051-126/+88
| | | | | | (GH-7377). (GH-7431) (cherry picked from commit 5f48e2644dcfb47f0bbc0fcdc2b103a19bdec288)
* bpo-33752: Fix a file leak in test_dbm. (GH-7376)Miss Islington (bot)2018-06-051-4/+2
| | | | | | With addCleanup() f.close() was executed after tearDown(). (cherry picked from commit 6592d7fe11477f8f974d2d4a85c3382a1ad05217) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)Miss Islington (bot)2018-06-051-0/+7
| | | | | | Raise TypeError instead of SystemError for unsupported operations. (cherry picked from commit e9e397605789b2a67b67558fbbe756b7b88934f5) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358)Miss Islington (bot)2018-06-041-3/+5
| | | | | (cherry picked from commit 13f51d9eec569e08475390e2a8f49f4afed1ea06) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)Miss Islington (bot)2018-06-042-52/+56
| | | | | (cherry picked from commit b609e687a076d77bdd687f5e4def85e29a044bfc) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33664: Scroll IDLE editor text by lines (GH-7351)Miss Islington (bot)2018-06-041-2/+27
| | | | | | | | | Previously, the mouse wheel and scrollbar slider moved text by a fixed number of pixels, resulting in partial lines at the top of the editor box. The change also applies to the shell and grep output windows, but not to read-only text views. (cherry picked from commit d49dbd9acc6db544ca6cb2445fe17eb0c3be4bba) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.6] bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7375)Serhiy Storchaka2018-06-041-7/+3
| | | | | | It depended on a global variable set by other tests.. (cherry picked from commit 7cfd8c6a1b53a7dbdea14b6f414f2629dcd130a2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33760: Fix file leaks in test_io. (GH-7361) (GH-7372)Miss Islington (bot)2018-06-041-0/+4
| | | | | (cherry picked from commit e36837cb71032ccfa713e75623b314f091dc22bb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33750: Reset thread-local context precision in test_round(). (GH-7355) ↵Miss Islington (bot)2018-06-031-11/+11
| | | | | | | (#7356) (cherry picked from commit e95dfc5006d19e59c7871faa9973356844ddb3ae) Co-authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-33744: Fix test_uu. (GH-7350) (GH-7353)Miss Islington (bot)2018-06-031-78/+26
| | | | | | Separate tests leaked files or were depended on files leaked in other tests. (cherry picked from commit 027f95c736457f12c5713d9cf5b95ac335e583df) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)Miss Islington (bot)2018-06-025-35/+67
| | | | | | | | | | | | | | | | The difference from before is that the settings are now on the Highlights tab instead of the Extensions tab and only change one theme at a time instead of all themes. The default for light themes is black on light gray, as before. The default for the IDLE Dark theme is white on dark gray, which better fits the dark theme. When one starts IDLE from a console and loads a custom theme without definitions for 'context', one will see a warning message on the console. To stop the warning, go to Options => Configure IDLE => Highlights, select the custom theme if not selected already, select 'Code Context', and select foreground and background colors. (cherry picked from commit de6516264e793be991f692fdd892707afb9104a7) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)Miss Islington (bot)2018-06-025-29/+31
| | | | | | | | | | | | | Instead of displaying a fixed number of lines, some blank, Code Context now displays the variable number of actual context lines. When there are no context lines, it shows a single blank line to indicate that the feature is turned on. The Code Context configuration option is changed from 'numlines' (default 3) to 'maxlines' (default 15) to avoid possible interference between user settings for the old and new versions of Code Context. (cherry picked from commit 29996a1c4e8bd6dde6adce2b44d11a0982a47a3a) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7322)Victor Stinner2018-06-011-31/+33
| | | | | | Use also support.SOCK_MAX_SIZE, not only support.PIPE_MAX_SIZE, to get the size for a blocking send into a multiprocessing pipe. Replace also test.support with support.
* bpo-33718: Update regrtest from master (GH-7325)Victor Stinner2018-06-019-70/+97
| | | | * Add support.environment_altered: unused yet * VSTS: don't run tests with --fail-env-changed
* bpo-31238: pydoc ServerThread.stop() now joins itself (GH-3151) (GH-7324)Victor Stinner2018-06-011-0/+4
| | | | | | | ServerThread.stop() now joins itself to wait until DocServer.serve_until_quit() completes and then explicitly sets its docserver attribute to None to break a reference cycle. (cherry picked from commit 4cab2cd0c05fcda5fcb128c9eb230253fff88c21)
* bpo-33540, socketserver: Add _block_on_close for tests (GH-7317)Victor Stinner2018-06-013-31/+57
| | | | | * Add a private _block_on_close attribute to ForkingMixIn and ThreadingMixIn classes of socketserver. * Use _block_on_close=True in test_socketserver and test_logging
* [3.6] bpo-31234: Add test.support.wait_threads_exit() (GH-3578) (GH-7315)Victor Stinner2018-06-016-102/+163
| | | | | | | | | | | | | | | | | | | * bpo-31234: Add test.support.wait_threads_exit() (GH-3578) Use _thread.count() to wait until threads exit. The new context manager prevents the "dangling thread" warning. (cherry picked from commit ff40ecda73178dfcad24e26240d684356ef20793) * bpo-31234: Try to fix lock_tests warning (#3557) Try to fix the "Warning -- threading_cleanup() failed to cleanup 1 threads" warning in test.lock_tests: wait a little bit longer to give time to the threads to complete. Warning seen on test_thread and test_importlib. (cherry picked from commit 096ae3373abac2c8b3a26a3fe33cc8bd4cbccd4e)
* bpo-31479: Always reset the signal alarm in tests (GH-3588) (GH-7312)Victor Stinner2018-06-016-40/+56
| | | | | | | | | | | | | | * bpo-31479: Always reset the signal alarm in tests Use "try: ... finally: signal.signal(0)" pattern to make sure that tests don't "leak" a pending fatal signal alarm. * Move two more alarm() calls into the try block Fix also typo: replace signal.signal(0) with signal.alarm(0) * Move another signal.alarm() into the try block (cherry picked from commit 9abee722d448c1c00c7d4e11ce242ec7b13e5c49)
* test.bisect: Update from master, fix typos (#7311)Victor Stinner2018-06-011-3/+3
|
* bpo-31009: Move fd_count() to test.support (#7308)Victor Stinner2018-06-013-39/+60
| | | | | | * Move fd_count() from test.libregrtest.refleak to test.support * Fix support.fd_count() on Windows: Call CrtSetReportMode() to not kill the process on invalid file descriptor if Python is compiled in debug mode.
* bpo-33692: Update pythoninfo from master (GH-7301)Victor Stinner2018-06-011-0/+29
| | | * bpo-33717: pythoninfo: add CC --version (GH-7290)
* bpo-33532: Fix multiprocessing test_ignore() (GH-7262) (#7266)Victor Stinner2018-05-311-2/+3
| | | | | | | Fix test_ignore() of multiprocessing tests like test_multiprocessing_forkserver: use support.PIPE_MAX_SIZE to make sure that send_bytes() blocks. (cherry picked from commit 5d6c7ed5e340b2311a15f34e968d4bef09c71922)
* regrtest: repeat summary after re-run (GH-7159) (GH-7245)Victor Stinner2018-05-301-6/+19
| | | | | | Using -w, when failing tests are re-run in verbose mode, display again the tests results at the end. (cherry picked from commit c6c05d0e69cd5a7d0205019c29a1236b7bf3f5b9)
* bpo-33692: pythoninfo detect libedit on Python 3.6 (GH-7244)Victor Stinner2018-05-301-0/+8
| | | | Check which readline implementation is used based on the readline docstring.
* Improve ensurepip's --help (GH-4686) (GH-7239)Miss Islington (bot)2018-05-301-3/+3
| | | | | | | | | | * Add a space to ensurepip's --altinstall option * Add periods to the arguments of ensurepip that didn't have it This makes --help for all optional arguments consistent and also makes it consistent with pip --help. (cherry picked from commit e9537ad6a128924dd610bea2268065500c174181) Co-authored-by: Wieland Hoffmann <mineo@users.noreply.github.com>
* bpo-32684: Fix gather to propagate cancel of itself with return_exceptions ↵Yury Selivanov2018-05-292-2/+38
| | | | (GH-7224)
* Fix ci for 3.6 / asyncio / test_stdin_broken_pipe (#7212)Yury Selivanov2018-05-291-0/+1
|
* bpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636) ↵Miss Islington (bot)2018-05-292-19/+53
| | | | | | | (#7205) (cherry picked from commit a9cab433bbf02f3a1de59d14dc8f583181ffe2d5) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines (GH-7180)Yury Selivanov2018-05-293-12/+41
| | | [3.6 backport of 989b9e0]
* bpo-33674: asyncio: Fix SSLProtocol race (GH-7175) (GH-7188)Victor Stinner2018-05-291-1/+1
| | | | | | | | Fix a race condition in SSLProtocol.connection_made() of asyncio.sslproto: start immediately the handshake instead of using call_soon(). Previously, data_received() could be called before the handshake started, causing the handshake to hang or fail. (cherry picked from commit be00a5583a2cb696335c527b921d1868266a42c6)
* bpo-33469: RuntimeError after closing loop that used run_in_executor (GH-7171)Miss Islington (bot)2018-05-292-0/+21
| | | | | (cherry picked from commit fdccfe09f0b10776645fdb04a0783d6864c32b21) Co-authored-by: Yury Selivanov <yury@magic.io>
* bpo-31647: Fix write_eof() after close() for SelectorSocketTransport ↵Miss Islington (bot)2018-05-282-1/+7
| | | | | | | | | (GH-7149) (#7154) Fixed bug where calling write_eof() on a _SelectorSocketTransport after it's already closed raises AttributeError. (cherry picked from commit 23f587e395e41bd5e116312b036183f42bc4159b) Co-authored-by: twisteroid ambassador <twisteroidambassador@users.noreply.github.com>