summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] gh-103820: IDLE: Do not interpret buttons 4/5 as scrolling on non-X11 ↵Miss Islington (bot)2024-02-021-8/+14
| | | | | | | | | (GH-103821) (GH-114902) Also fix test_mousewheel: do not skip a check which was broken due to incorrect delta on Aqua and XQuartz, and probably not because of `.update_idletasks()`. (cherry picked from commit d25d4ee60cc789a8b9c222859bb720ade1ab2e30) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
* [3.11] gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' ↵Miss Islington (bot)2024-01-181-0/+1
| | | | | | | | | (GH-114227) (#114229) Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'. Suffix 'object' with '_'. (cherry picked from commit 6f4b242a03e521a55f0b9e440703b424ed18ce2f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-113903: Fix an IDLE configdialog test (GH-113973) (#113975)Miss Islington (bot)2024-01-121-16/+13
| | | | | | | | | | | | | | test_configdialog.HighPageTest.test_highlight_target_text_mouse fails if a line of the Highlight tab text sample is not visible. If so, bbox() in click_char() returns None and the unpacking iteration fails. This occurred on a Devuan Linux system. Fix by moving the 'see character' call inside click_char, just before the bbox call. Also, reduce the click_char calls to just one per tag name and replace the other nested function with a dict comprehension. (cherry picked from commit c4992f4106aa509375f5beca8dc044a7f6c36a72) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-113729: Fix IDLE's Help -> "IDLE Help" menu bug in 3.12.1 and ↵Miss Islington (bot)2024-01-062-14/+16
| | | | | | | | 3.11.7 (GH-113731) (#113766) (cherry picked from commit 66f39648154214621d388f519210442d5fce738f) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-81682: Fix test failures when CPython is built without docstrings ↵Serhiy Storchaka2023-12-231-0/+6
| | | | | (GH-113410) (GH-113430) (cherry picked from commit 4e5b27e6a3be85853bd04d45128dd7cc706bb1c8)
* [3.11] gh-113269: IDLE - Fix test_editor hang (macOS) (GH-113271) (#113273)Miss Islington (bot)2023-12-191-1/+1
| | | | | | | | | gh-113269: IDLE - Fix test_editor hang (macOS) (GH-113271) Hangs on installed 3.13.0a2 on macOS Catalina. Behavior on installed 3.12.1 and 3.11.7 is unknown. (cherry picked from commit fa9ba02353d79632983b9fe24da851894877e342) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] IDLE: Add util and stub example comments (GH-113222) (#113224)Miss Islington (bot)2023-12-171-0/+2
| | | | | (cherry picked from commit cde1335485b7bffb12c378d230ae48ad77d76ab1) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-112953: Rename idlelib/NEWS.txt to News3.txt and update (GH… ↵Terry Jan Reedy2023-12-121-1/+1
| | | | (#112992)
* [3.11] gh-66819: More IDLE htest updates(4) (GH-112686) (#112689)Miss Islington (bot)2023-12-041-30/+30
| | | | | | Mostly double spacing before 'if __name__...'. (cherry picked from commit e5b0db0315941b968ebcc2414bfcdd2da44fd3c2) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-66819: More IDLE htest updates(3) (GH-112683) (#112685)Miss Islington (bot)2023-12-041-8/+8
| | | | | | Revise spec-callable pairs from percolator to end. (cherry picked from commit 5a1b5316af648ae79bb91f28253b6272bbbd2886) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-66819: More IDLE htest updates(2) (GH-112642) (#112644)Miss Islington (bot)2023-12-031-54/+54
| | | | | | | Examine and update spec -- callable pairs. Revise run method. (cherry picked from commit 3855b45874d5f8eb92a4957fb9de6fdce63eb760) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-66819: More IDLE htest updates (GH-112574) (#112576)Miss Islington (bot)2023-12-011-55/+52
| | | | | | Revise htest.py docstring and move 2 specs to alphabetical position. (cherry picked from commit e44f1940bd6d2ba4a3f8ac4585b3cf4f9cb93e49) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] IDLE: fix config_key htest (GH-112545) (#112547)Miss Islington (bot)2023-11-301-1/+1
| | | | | | Change 'Dialog' to 'Window' in two places to match the name of the config_key class being tested. (cherry picked from commit 81261fa67ff82b03c255733b0d1abbbb8a228187) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] IDLE: Fix test_debugger bug and buildbot failures (GH-112258) (#112260)Miss Islington (bot)2023-11-191-5/+7
| | | | | | | | | | | | | IDLE: Fix test_debugger bug and buildbot failures (GH-112258) Missing "requires('gui')" causes Tk() to fail when no gui. This caused CI Hypothesis test to fail, but I did not understand the its error message. Then buildbots failed. IdbTest failed on draft Bdb replacement because so different. Simplified version works on old and new. (cherry picked from commit 14fd86a59d0d91fe72641efeb14a59d99127dec3) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-79871: IDLE - Fix and test debugger module (GH-11451) (#112257)Miss Islington (bot)2023-11-191-5/+271
| | | | | | | | | | | Add docstrings to the debugger module. Fix two bugs: initialize Idb.botframe (should be in Bdb); In Idb.in_rpc_code, check whether prev_frame is None before trying to use it. Make other code changes. Expand test_debugger coverage from 19% to 66%. --------- (cherry picked from commit adedcfa06b553242d8033f6d9bebbcb3bc0dbb4d) Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-108303: Move config parser data to `Lib/test/configparserdata/` ↵Miss Islington (bot)2023-11-091-4/+4
| | | | | | | | (gh-111879) (gh-111883) gh-108303: Move config parser data to `Lib/test/configparserdata/` (gh-111879) (cherry picked from commit cc18b886a51672c59622837a2b8e83bf6be28c58) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.11] gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements ↵Miss Islington (bot)2023-10-191-1/+1
| | | | | | | | | | | | (GH-111053) (#111056) gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements (GH-111053) Replace tuple value with internal name, removing numbers. Remove sorting of already ordered dislay names. Remove '[0]' indexing into now-gone tuple. (cherry picked from commit 642eb8df951f2f1d4bf4d93ee568707c5bf40a96) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-103737: IDLE - Remove unneeded .keys() for dict iteration ↵Miss Islington (bot)2023-10-182-4/+4
| | | | | | | | | | | | (GH-110960) (#111027) gh-103737: IDLE - Remove unneeded .keys() for dict iteration (GH-110960) Add comments where .keys() is needed. Leave debugger usages along because situation is unclear as indicated in expanded comment. Most testing is manual. (cherry picked from commit baefbb21d91db2d950706737a6ebee9b2eff5c2d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-102832: IDLE - remove use of deprecated sys.last_xyzs for ↵Miss Islington (bot)2023-06-081-10/+4
| | | | | | | | stackviewer (GH-103339) (#105527) gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer (GH-103339) (cherry picked from commit 3ee921d84f06da9dfa8aa29e0d33778b9dbf8f23) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.11] gh-104719: IDLE - test existence of all tokenize references. ↵Miss Islington (bot)2023-05-242-3/+39
| | | | | | | | | | | | | (GH-104767) (#104845) gh-104719: IDLE - test existence of all tokenize references. (GH-104767) Class editor.IndentSearcher contains all editor references to tokenize module. Module io tokenize reference cover those other modules. (cherry picked from commit e561c09975bf67ad8bb67c56a81e30a9165bcc84) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.11] gh-104496: IDLE - fix About for mixed tcl/tk versions (GH-104585) ↵Miss Islington (bot)2023-05-171-2/+2
| | | | | | | | | | (#104587) gh-104496: IDLE - fix About for mixed tcl/tk versions (GH-104585) Print both if they are different, as may happen in the future. (cherry picked from commit aed643baa968b4959b830d37750080cac546fba7) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] GH-71383: IDLE - Document testing subsets of modules (GH-104463) ↵Miss Islington (bot)2023-05-142-15/+28
| | | | | | | | (#104464) GH-71383: IDLE - Document testing subsets of modules (GH-104463) (cherry picked from commit 080a5961527473af182b025bb29e0c52d43fd49e) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-88496: IDLE - fix another test on macOS (GH-104075) (#104076)Miss Islington (bot)2023-05-021-2/+3
| | | | | | | | gh-88496: IDLE - fix another test on macOS (GH-104075) Needed for Catalina: test_sidebar add 'idletasks' and skip assert. (cherry picked from commit 690df4c16ca4f0054d27a6148da9e6af809a2658) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] Change 'dependant' to 'dependent' (GH-103745) (#103754)Miss Islington (bot)2023-04-241-2/+2
| | | | Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
* [3.11] gh-103668: Run pyugrade on idlelib (GH-103671) (#103730)Miss Islington (bot)2023-04-242-2/+2
| | | | | | --------- (cherry picked from commit bd2dca035af88694e25fb060f984fbbcda82bed8) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Terry Jan Reedy tjreedy@udel.edu
* IDLE - fix module browser test (GH-100647)Miss Islington (bot)2023-01-011-2/+1
| | | | | (cherry picked from commit 1f6c87ca7b9351b2e5c5363504796fce0554c9b8) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-35675: IDLE - separate config_key window and frame (GH-11427)Miss Islington (bot)2022-09-302-25/+90
| | | | | | | | bpo-35598: IDLE: Refactor window and frame class Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 1cc308d03c1b44a0885a3c5f07d0786b49ea711d) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* gh-87179: Fix more IDLE class headers (GH-96899)Miss Islington (bot)2022-09-172-2/+2
| | | | | | Remove unneeded '(object)' and '()'. (cherry picked from commit aa671b48d62a00c5ab87fb102be15dd5eeac84dd) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96500)Gregory P. Smith2022-09-021-1/+3
| | | | | | | | | | | | | | | | | | Integer to and from text conversions via CPython's bignum `int` type is not safe against denial of service attacks due to malicious input. Very large input strings with hundred thousands of digits can consume several CPU seconds. This PR comes fresh from a pile of work done in our private PSRT security response team repo. This backports https://github.com/python/cpython/pull/96499 aka 511ca9452033ef95bc7d7fc404b8161068226002 Signed-off-by: Christian Heimes [Red Hat] <christian@python.org> Tons-of-polishing-up-by: Gregory P. Smith [Google] <greg@krypto.org> Reviews via the private PSRT repo via many others (see the NEWS entry in the PR). <!-- gh-issue-number: gh-95778 --> * Issue: gh-95778 <!-- /gh-issue-number --> I wrote up [a one pager for the release managers](https://docs.google.com/document/d/1KjuF_aXlzPUxTK4BMgezGJ2Pn7uevfX7g0_mvgHlL7Y/edit#).
* gh-95191: IDLE: Include prompts when saving Shell GH-95554 (#95557)Miss Islington (bot)2022-08-021-3/+10
| | | | | (cherry picked from commit b85411fc5e9e223a6bd44f89f674ee3b2e29b99e) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-95511: IDLE - fix Shell context menu copy-with-prompts bug (GH-95512)Miss Islington (bot)2022-08-011-3/+4
| | | | | | | | | If one selects whole lines, as the sidebar makes easy, do not add an extra line. Only move the end of a selection to the beginning of the next line when not already at the beginning of a line. (Also improve the surrounding code.) (cherry picked from commit fc31a13dc1799b8d972c1f4ea49f27090aed7f48) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-95411: IDLE - Enable using the module browser with .pyw files (GH-95397)Miss Islington (bot)2022-07-301-0/+10
| | | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 7e19e417b5df765dabab8d6550ec0e9d897c573e) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* [3.11] gh-93883: elide traceback indicators when possible (GH-93994) (GH-94740)John Belmonte2022-07-111-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Elide traceback column indicators when the entire line of the frame is implicated. This reduces traceback length and draws more attention to the remaining (very relevant) indicators. Example: ``` Traceback (most recent call last): File "query.py", line 99, in <module> bar() File "query.py", line 66, in bar foo() File "query.py", line 37, in foo magic_arithmetic('foo') File "query.py", line 18, in magic_arithmetic return add_counts(x) / 25 ^^^^^^^^^^^^^ File "query.py", line 24, in add_counts return 25 + query_user(user1) + query_user(user2) ^^^^^^^^^^^^^^^^^ File "query.py", line 32, in query_user return 1 + query_count(db, response['a']['b']['c']['user'], retry=True) ~~~~~~~~~~~~~~~~~~^^^^^ TypeError: 'NoneType' object is not subscriptable ``` Automerge-Triggered-By: GH:pablogsal
* gh-84623: Remove unused imports in idlelib (GH-94143)Miss Islington (bot)2022-06-222-14/+6
| | | | | | | | Remove commented code in test_debugger_r.py. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 576dd901170af30fc50b0a7f07a388b38fd724a9) Co-authored-by: Victor Stinner <vstinner@python.org>
* Fix typo in Lib/idlelib/idle_test/test_parenmatch.py (GH-93332) (#93339)Miss Islington (bot)2022-05-301-2/+2
| | | | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 4f195f9db168bfe3360607eb45ba8d9ac98506ec) Co-authored-by: luzpaz <luzpaz@users.noreply.github.com>
* gh-91098: Use Argument Clinic for Object/classobject.c to fix docstrings ↵Oleg Iarygin2022-04-191-1/+3
| | | | | | | (#31711) Closes GH-91098. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-45447: Add syntax highlighting for `.pyi` files in IDLE (GH-28950)Alex Waygood2022-02-134-1/+43
| | | | | | | | Also add .pyi to the python extensions in the "File-open" and "File-save" dialogues. Add util.py to contain objects that are used in multiple idlelib modules and have no dependencies on any of them. Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-46588: fix typo in test_calltip.py (GH-31119)Caio Agiani2022-02-041-1/+1
|
* bpo-45975: Use walrus operator for some idlelib while loops (GH-31083)Nick Drozd2022-02-031-4/+1
|
* bpo-46591: Make About IDLE doc link label clickable (GH-30251)Wes2022-02-021-2/+2
| | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000)Terry Jan Reedy2021-10-161-0/+5
| | | | Since the keyword list is frozen, only compute it once per session. The colorizer already handles context keywords.
* Fix typos in the Lib directory (GH-28775)Christian Clauss2021-10-064-6/+6
| | | | | Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [codemod] Fix non-matching bracket pairs (GH-28473)Mohamad Mansour2021-09-212-2/+2
| | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45020: Don't test IDLE with frozen module. (GH-28344)Terry Jan Reedy2021-09-151-2/+2
| | | Otherwise, test would need special import.
* bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)Terry Jan Reedy2021-08-311-0/+9
|
* bpo-45059: Fix IDLE test typo: using "==" instead of "=" (GH-28086)Serhiy Storchaka2021-08-311-1/+1
|
* bpo-43950: Add option to opt-out of PEP-657 (GH-27023)Ammar Askar2021-07-071-4/+9
| | | | | Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com> Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
* bpo-43950: Print columns in tracebacks (PEP 657) (GH-26958)Ammar Askar2021-07-041-3/+3
| | | | | | | | The traceback.c and traceback.py mechanisms now utilize the newly added code.co_positions and PyCode_Addr2Location to print carets on the specific expressions involved in a traceback. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Ammar Askar <ammar@ammaraskar.com> Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
* bpo-33962: Use ttk spinbox for IDLE indent space config (GH-22954)Mark Roseman2021-06-101-24/+9
| | | | | If ttk.Spinbox is not available (Tk < 8.5.9) use readonly ttk.Combobox. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-40468: Split IDLE settings General tab (GH-26621)Terry Jan Reedy2021-06-091-11/+33
| | | | | | | Replace it with Windows tab for Shell and Editor options and Shell/Ed for options exclusive to one of them. Create room for more options and make dialog shorter, to better fit small windows.