summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] 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-114901) 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.12] gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' ↵Miss Islington (bot)2024-01-181-0/+1
| | | | | | | | | (GH-114227) (#114228) 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.12] gh-113903: Fix an IDLE configdialog test (GH-113973) (#113974)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.12] 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) (#113765) (cherry picked from commit 66f39648154214621d388f519210442d5fce738f) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-81682: Fix test failures when CPython is built without docstrings ↵Serhiy Storchaka2023-12-231-0/+6
| | | | | (GH-113410) (GH-113429) (cherry picked from commit 4e5b27e6a3be85853bd04d45128dd7cc706bb1c8)
* [3.12] gh-113269: IDLE - Fix test_editor hang (macOS) (GH-113271) (#113272)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.12] IDLE: Add util and stub example comments (GH-113222) (#113223)Miss Islington (bot)2023-12-171-0/+2
| | | | | (cherry picked from commit cde1335485b7bffb12c378d230ae48ad77d76ab1) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-112953: Rename idlelib/NEWS.txt to News3.txt and update ↵Terry Jan Reedy2023-12-121-1/+1
| | | | (GH-112988) (#112990)
* [3.12] gh-66819: More IDLE htest updates(4) (GH-112686) (#112688)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.12] gh-66819: More IDLE htest updates(3) (GH-112683) (#112684)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.12] gh-66819: More IDLE htest updates(2) (GH-112642) (#112643)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.12] gh-66819: More IDLE htest updates (GH-112574) (#112575)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.12] IDLE: fix config_key htest (GH-112545) (#112546)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.12] IDLE: Fix test_debugger bug and buildbot failures (GH-112258) (#112259)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.12] gh-79871: IDLE - Fix and test debugger module (GH-11451) (#112256)Miss Islington (bot)2023-11-191-5/+271
| | | | | | | | | | | | | gh-79871: IDLE - Fix and test debugger module (GH-11451) 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.12] gh-108303: Move config parser data to `Lib/test/configparserdata/` ↵Miss Islington (bot)2023-11-091-4/+4
| | | | | | | | (gh-111879) (gh-111882) 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.12] gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements ↵Miss Islington (bot)2023-10-191-1/+1
| | | | | | | | | | | | (GH-111053) (#111055) 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.12] gh-103737: IDLE - Remove unneeded .keys() for dict iteration ↵Miss Islington (bot)2023-10-182-4/+4
| | | | | | | | | | | | (GH-110960) (#111026) 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.12] gh-102832: IDLE - remove use of deprecated sys.last_xyzs for ↵Miss Islington (bot)2023-06-081-10/+4
| | | | | | | | stackviewer (GH-103339) (#105526) 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.12] gh-104972: Ensure that line attributes in tokens in the tokenize ↵Miss Islington (bot)2023-05-261-2/+2
| | | | | | | | module are correct (GH-104975) (#104982) gh-104972: Ensure that line attributes in tokens in the tokenize module are correct (GH-104975) (cherry picked from commit 3fdb55c48291a459fb1e33edb5140ec0383222df) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.12] gh-104825: add omitted idlelib text fix (#104880)Terry Jan Reedy2023-05-241-2/+2
| | | | | | | | | | | | | Order of events: Terry merged new idlelib test into main. Ms. I. made a 3.12 backport; tests passed. Pablo merged the tokenize change with idlelib test fix into main. Pablo merged a 3.12 backport without the idle test fix as the backport of the latter had not yet been been merged. Terry merged the idlelib test backport. The new test failed on at least 4 3.12 buildbots because of the tokenize change. This PR backports the now needed idlelib test fix. (cherry picked from commit c8cf9b4)
* [3.12] gh-104719: IDLE - test existence of all tokenize references. ↵Miss Islington (bot)2023-05-242-3/+39
| | | | | | | | | | | | | (GH-104767) (#104844) 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>
* gh-104496: IDLE - fix About for mixed tcl/tk versions (#104585)Terry Jan Reedy2023-05-171-2/+2
| | | Print both if they are different, as may happen in the future.
* GH-71383: IDLE - Document testing subsets of modules (#104463)Terry Jan Reedy2023-05-142-15/+28
|
* gh-88496: IDLE - fix another test on macOS (#104075)Terry Jan Reedy2023-05-021-2/+3
| | | Needed for Catalina: test_sidebar add 'idletasks' and skip assert.
* Change 'dependant' to 'dependent' (#103745)Christopher Chavez2023-04-241-2/+2
| | | | The word 'dependent' is both an adjective and a noun. A 'dependant' is a British alternative spelling for the noun form. In idlelib.sidebar, 'OS-dependant' is an adjective and clearly wrong. In 'Using', 'dependant' as a noun would be acceptable in Britain, but we use American spellings in Python docs. https://www.merriam-webster.com/words-at-play/spelling-variants-dependent-vs-dependant
* gh-103668: Run pyugrade on idlelib (#103671)Nikita Sobolev2023-04-232-2/+2
| | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-102778: revert changes to idlelib (#102825)Irit Katriel2023-03-191-2/+1
|
* gh-102778: Add sys.last_exc, deprecate sys.last_type, ↵Irit Katriel2023-03-181-1/+2
| | | | sys.last_value,sys.last_traceback (#102779)
* IDLE - fix module browser test (#100647)Terry Jan Reedy2023-01-011-2/+1
|
* gh-98254: Include stdlib module names in error messages for NameErrors (#98255)Pablo Galindo Salgado2022-10-151-1/+2
|
* bpo-35675: IDLE - separate config_key window and frame (#11427)Cheryl Sabella2022-09-302-25/+90
| | | | | bpo-35598: IDLE: Refactor window and frame class Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-87179: Fix more IDLE class headers (#96899)Terry Jan Reedy2022-09-172-2/+2
| | | Remove unneeded '(object)' and '()'.
* gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96499)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. 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#). Much of that text wound up in the Issue. Backports PRs already exist. See the issue for links.
* gh-95191: IDLE: Include prompts when saving Shell #95554Terry Jan Reedy2022-08-021-3/+10
|
* gh-95511: IDLE - fix Shell context menu copy-with-prompts bug (#95512)Terry Jan Reedy2022-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.)
* gh-95411: IDLE - Enable using the module browser with .pyw files (#95397)Erlend Egeberg Aasland2022-07-301-0/+10
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-93883: elide traceback indicators when possible (#93994)John Belmonte2022-07-111-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gh-93883: elide traceback indicators when possible Elide traceback column indicators when the entire line of the frame is implicated. This reduces traceback length and draws even 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 ``` Rather than going out of our way to provide indicator coverage in every traceback test suite, the indicator test suite should be responible for sufficient coverage (e.g. by adding a basic exception group test to ensure that margin strings are covered).
* gh-84623: Remove unused imports in idlelib (#94143)Victor Stinner2022-06-222-14/+6
| | | | | Remove commented code in test_debugger_r.py. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Fix typo in Lib/idlelib/idle_test/test_parenmatch.py (GH-93332)luzpaz2022-05-301-2/+2
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* 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
|