summaryrefslogtreecommitdiff
path: root/Lib/idlelib/idle_test
Commit message (Collapse)AuthorAgeFilesLines
* 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-132-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 Reedy2022-12-311-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-232-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-291-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-181-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-124-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-031-1/+1
|
* bpo-45975: Use walrus operator for some idlelib while loops (GH-31083)Nick Drozd2022-02-021-4/+1
|
* bpo-46591: Make About IDLE doc link label clickable (GH-30251)Wes2022-02-011-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-222-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-051-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.
* bpo-40468: Factor out class ExtPage in idlelib.configdialog (GH-26618)Terry Jan Reedy2021-06-081-2/+12
|
* bpo-40468: Move IDLE helplist settings to extensions page of dialog. (GH-26593)Terry Jan Reedy2021-06-081-85/+102
| | | | These are the settings that extend the help menu. Moving them shortens the dialog and will help with it being too tall for small screens.
* Use absolute imports in IDLE tests (GH-26581)Terry Jan Reedy2021-06-071-1/+1
| | | Relative imports do not work when running test_x as main.
* bpo-44282: Fix occasional test_incremental_editing failures on buildbots ↵Tal Einat2021-06-033-43/+49
| | | | | (GH-26491) Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com>
* bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851)Tal Einat2021-05-191-20/+219
|
* bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912)E-Paine2021-05-071-4/+43
| | | | | | | A C function accessible by the default exception handler, but not by python code, finds the existing name closest to the name causing a name or attribute error. For such errors, call the default handler after capturing stderr and retrieve its message line. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-37903: IDLE: add shell sidebar mouse interactions (GH-25708)Tal Einat2021-05-022-2/+61
| | | | | | Left click and drag to select lines. With selection, right click for context menu with copy and copy-with-prompts. Also add copy-with-prompts to the text-box context menu. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-43981: Fix reference leaks in test_squeezer (GH-25758)Pablo Galindo2021-04-301-0/+1
|
* bpo-43981: Fix error in idle-test leak test (GH-25739)Terry Jan Reedy2021-04-291-3/+2
| | | | | Remove call to macosx.setupApp, which calls macosc.overrideRootMenu, which modifies the menus, which results in two failures in the second round of the leak test.
* bpo-37903: IDLE: Shell sidebar with prompts (GH-22682)Tal Einat2021-04-285-36/+494
| | | | | | The first followup will change shell indents to spaces. More are expected. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-38307: Add end_lineno attribute to pyclbr Objects (GH-24348)Aviral Srivastava2021-02-011-9/+9
| | | | | | | | For back-compatibility, make the new constructor parameter for public classes Function and Class keyword-only with a default of None. Co-authored-by: Aviral Srivastava <aviralsrivastava@Avirals-MacBook-Air.local Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163)Zackery Spytz2021-01-281-0/+21
| | | | | Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-43008: Make IDLE respect sys.excepthook (GH-24302)Ken2021-01-261-4/+39
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-43013: Fix old tkinter module names in idlelib (GH-24326)Terry Jan Reedy2021-01-255-17/+16
| | | | | | Lowercase 'tkColorChooser', 'tkFileDialog', 'tkSimpleDialog', and 'tkMessageBox' and remove 'tk'. Just lowercase 'tkFont' as 'font' is already used. Adjust import.
* bpo-43013: Update idlelib code to 3.x (GH-24315)Terry Jan Reedy2021-01-246-38/+40
| | | | Remove 9 remaining '(object)' occurrences in class headers in idlelib and 25 '()' occurrences in idlelib.idle_test class headers.
* bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)Terry Jan Reedy2021-01-101-0/+14
| | | | | If __repr__ uses instance attributes, as normal, and one steps through the __init__ method, debugger may try to get repr before the instance attributes exist. reprlib.repr handles the error.
* bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)Cheryl Sabella2021-01-051-0/+152
| | | | | Make menu items work with formatter, add docstrings, add 100% tests. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>