summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test
Commit message (Collapse)AuthorAgeFilesLines
* gh-112938: IDLE - Fix uninteruptable hang when Shell gets rapid continuous ↵Terry Jan Reedy2024-09-221-0/+5
| | | | | | | | | | | | output. (#124310) https://github.com/python/cpython/issues/88496 replaced text.update with text.update_idletasks in colorizer.py and outwin.py to fix test failures on macOS. While theoretically correct, the result was Shell freezing when receiving continuous short strings to print. Test: `while 1: 1`. The guess is that there is no idle time in which to do the screen update. Reverting the change in one of the files, outwin, fixes the issue. Colorizer runs ever 1/20 second and seems to work fine. When running test-outwin on macOS, alias 'update' to 'update_idletasks on the text used for testing.
* Fixes typo in idlelib/idle_test/example_stub.pyi (#122520)Jonathon Vandezande2024-08-021-1/+1
| | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-112730: Make the test suite resilient to color-activation environment ↵Pablo Galindo Salgado2024-04-241-0/+3
| | | | variables (#117672)
* gh-103820: IDLE: Do not interpret buttons 4/5 as scrolling on non-X11 ↵Christopher Chavez2024-02-021-8/+14
| | | | | | | (GH-103821) 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()`.
* gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' (#114227)Terry Jan Reedy2024-01-181-0/+1
| | | | | Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'. Suffix 'object' with '_'.
* gh-113903: Fix an IDLE configdialog test (#113973)Terry Jan Reedy2024-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.
* gh-113729: Fix IDLE's Help -> "IDLE Help" menu bug in 3.12.1 and 3.11.7 ↵Ronald Oussoren2024-01-062-14/+16
| | | | | (#113731) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-81682: Fix test failures when CPython is built without docstrings (GH-113410)Serhiy Storchaka2023-12-231-0/+6
|
* gh-113269: IDLE - Fix test_editor hang (macOS) (#113271)Terry Jan Reedy2023-12-191-1/+1
| | | | Hangs on installed 3.13.0a2 on macOS Catalina. Behavior on installed 3.12.1 and 3.11.7 is unknown.
* IDLE: Add util and stub example comments (#113222)Terry Jan Reedy2023-12-171-0/+2
|
* gh-112953: Rename idlelib/NEWS.txt to News3.txt and update (#112988)Terry Jan Reedy2023-12-121-1/+1
|
* gh-66819: More IDLE htest updates(4) (#112686)Terry Jan Reedy2023-12-041-30/+30
| | | | Mostly double spacing before 'if __name__...'.
* gh-66819: More IDLE htest updates(3) (#112683)Terry Jan Reedy2023-12-041-8/+8
| | | Revise spec-callable pairs from percolator to end.
* gh-66819: More IDLE htest updates(2) (#112642)Terry Jan Reedy2023-12-031-54/+54
| | | | | Examine and update spec -- callable pairs. Revise run method.
* gh-66819: More IDLE htest updates (#112574)Terry Jan Reedy2023-12-011-55/+52
| | | Revise htest.py docstring and move 2 specs to alphabetical position.
* IDLE: fix config_key htest (#112545)Terry Jan Reedy2023-11-301-1/+1
| | | Change 'Dialog' to 'Window' in two places to match the name of the config_key class being tested.
* IDLE: Fix test_debugger bug and buildbot failures (#112258)Terry Jan Reedy2023-11-191-5/+7
| | | | | | | | | 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.
* gh-79871: IDLE - Fix and test debugger module (#11451)Anthony Shaw2023-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%. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-108303: Move config parser data to `Lib/test/configparserdata/` (gh-111879)Nikita Sobolev2023-11-091-4/+4
|
* gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements (#111053)Terry Jan Reedy2023-10-191-1/+1
| | | | | | Replace tuple value with internal name, removing numbers. Remove sorting of already ordered dislay names. Remove '[0]' indexing into now-gone tuple.
* gh-103737: IDLE - Remove unneeded .keys() for dict iteration (#110960)Terry Jan Reedy2023-10-182-4/+4
| | | | | Add comments where .keys() is needed. Leave debugger usages along because situation is unclear as indicated in expanded comment. Most testing is manual.
* gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer ↵Irit Katriel2023-06-081-10/+4
| | | | (#103339)
* gh-104972: Ensure that line attributes in tokens in the tokenize module are ↵Pablo Galindo Salgado2023-05-261-2/+2
| | | | correct (#104975)
* gh-104825: Remove implicit newline in the line attribute in tokens emitted ↵Pablo Galindo Salgado2023-05-241-2/+2
| | | | in the tokenize module (#104846)
* gh-104719: IDLE - test existence of all tokenize references. (#104767)Terry Jan Reedy2023-05-242-3/+39
| | | | | | Class editor.IndentSearcher contains all editor references to tokenize module. Module io tokenize reference cover those other modules. 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>