summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test
Commit message (Collapse)AuthorAgeFilesLines
* [3.10] bpo-45495: Add 'case' and 'match' to IDLE completions list. ↵Miss Islington (bot)2021-10-161-0/+5
| | | | | | | | | | | | (GH-29000) (GH-29001) Since the keyword list is frozen, only compute it once per session. The colorizer already handles context keywords. (cherry picked from commit 42ac06dcd234bdda989dcfe854ac5173337024c9) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Automerge-Triggered-By: GH:terryjreedy
* [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804)Christian Clauss2021-10-074-6/+6
| | | | | | | | Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>. (cherry picked from commit 745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be) Co-authored-by: Christian Clauss <cclauss@me.com>
* [3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511)Łukasz Langa2021-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> (cherry picked from commit 8f943ca25732d548cf9f0b0393ba8d582fb93e29) Co-authored-by: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com>
* bpo-45020: Don't test IDLE with frozen module. (GH-28344)Miss Islington (bot)2021-09-151-2/+2
| | | | | | Otherwise, test would need special import. (cherry picked from commit 369bf949ccbb689cd4638b29b4c0c12db79b927c) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)Miss Islington (bot)2021-08-311-0/+9
| | | | | (cherry picked from commit 22fe0eb13c3441b71b60aaea0e7fe289a29783da) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45059: Fix IDLE test typo: using "==" instead of "=" (GH-28086)Miss Islington (bot)2021-08-311-1/+1
| | | | | (cherry picked from commit 54f100514b02f6628450043e21ccfe39350d7ac7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33962: Use ttk spinbox for IDLE indent space config (GH-22954)Miss Islington (bot)2021-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> (cherry picked from commit 42d5a4fc3b35e45cdd237d56a04e98894d0a31f5) Co-authored-by: Mark Roseman <mark@markroseman.com>
* bpo-40468: Split IDLE settings General tab (GH-26621)Miss Islington (bot)2021-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. (cherry picked from commit 275d5f7957dbb56a6d5e1248addff210ee2e7270) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-40468: Factor out class ExtPage in idlelib.configdialog (GH-26618)Miss Islington (bot)2021-06-091-2/+12
| | | | | (cherry picked from commit 5571cabf1b3385087aba2c7c10289bba77494e08) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-40468: Move IDLE helplist settings to extensions page of dialog. (GH-26593)Miss Islington (bot)2021-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. (cherry picked from commit ab36b9f83424a020fbd672f218612e6f19257a32) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Use absolute imports in IDLE tests (GH-26581)Miss Islington (bot)2021-06-071-1/+1
| | | | | | Relative imports do not work when running test_x as main. (cherry picked from commit e915db3e9e512249a6f494c0b331db2d021e1f56) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-44282: Fix occasional test_incremental_editing failures on buildbots ↵Miss Islington (bot)2021-06-033-43/+49
| | | | | | | | (GH-26491) (GH-26499) Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com> (cherry picked from commit adef445dc34685648bd0ea1c125df2ef143912ed) Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
* bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851)Miss Islington (bot)2021-05-191-20/+219
| | | | | (cherry picked from commit 60d343a81679ea90ae0e08fadcd132c16906a51a) Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
* bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912)Miss Islington (bot)2021-05-081-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> (cherry picked from commit 092f9ddb5e85665552c8207972cd393d492f764e) Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* bpo-37903: IDLE: add shell sidebar mouse interactions (GH-25708)Tal Einat2021-05-032-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-301-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>
* bpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447)Serhiy Storchaka2020-11-221-2/+4
|
* bpo-42416: Use inspect.getdoc for IDLE calltips (GH-23416)Terry Jan Reedy2020-11-201-2/+7
| | | Inspect.getdoc(ob) sometimes gets docstrings when ob.__doc__ is None.
* bpo-40511: Stop unwanted flashing of IDLE calltips (GH-20910)Tal Einat2020-11-022-5/+107
| | | | | | They were occurring with both repeated 'force-calltip' invocations and by typing parentheses in expressions, strings, and comments in the argument code. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33987: Add master ttk Frame to IDLE search dialogs (GH-22942)Mark Roseman2020-10-251-7/+7
|
* bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)Terry Jan Reedy2020-09-221-5/+3
| | | | The marker was added to the language in 3.8 and 3.7 only gets security patches.
* bpo-41514: Fix buggy IDLE test (GH-21808)Terry Jan Reedy2020-08-101-5/+5
| | | | | | test_run method test_fatal_error failed when run twice, as with python -m test -m test_fatal_error test_idle test_idle because func.called was not reinitialized to 0. This bug caused a failure on a refleak buildbot.
* bpo-41468: Improve and test IDLE run error exit (GH-21798)Terry Jan Reedy2020-08-091-2/+30
| | | A message box pops up when an unexpected error stops the run process. Tell users it is likely a random glitch, but report it if not.
* Improve renamed test_run.RecursionLimitTest (GH-21794)Terry Jan Reedy2020-08-091-3/+5
| | | PEP 8 style and new comments.
* bpo-37765: Add keywords to IDLE tab completions (GH-15138)Terry Jan Reedy2020-07-091-2/+5
| | | | | | | Keywords are present in the main module tab completion lists generated by rlcompleter, which is used by REPLs on *nix. Add all keywords to IDLE's main module name list except those already added from builtins (True, False, and None) . This list may also be used by Show Completions on the Edit menu, and its hot key. Rewrite Completions doc. Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-41152: IDLE: always use UTF-8 for standard IO streams (GH-21214)Serhiy Storchaka2020-06-301-5/+0
|
* bpo-41144: Fix IDLE open module error (#21182)E-Paine2020-06-281-0/+3
| | | | | Could not open os.path. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-39885: Make IDLE context menu cut and copy work again (GH-18951)Terry Jan Reedy2020-05-291-10/+36
| | | | Leave selection when right click within. This exception to clearing selections when right-clicking was omitted from the previous commit, 4ca060d. I did not realize that this completely disabled the context menu entries, and I should have merged a minimal fix immediately. An automated test should follow.
* bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311)Florian Dahlitz2020-05-241-1/+1
| | | | This was the only failure running unittest.main(test.test_idle) after imports.
* bpo-40443: Remove unused imports in idlelib (GH-19801)Victor Stinner2020-04-302-2/+0
|
* bpo-38689: avoid IDLE hanging when calltip fails getting a signature (GH-17152)Tal Einat2020-04-041-7/+17
| | | Inspect.signature failed on the test case because its isinstance call raised.
* bpo-27115: Use Query subclass for IDLE editor Goto (GH-18871)Terry Jan Reedy2020-03-091-0/+43
| | | | Replace tkinter tkSimpleDialog.askinteger with a standard IDLE query dialog. The new box checks for positivity before returning.
* bpo-39781: Do not jump when select in IDLE codecontext (GH-18683)Terry Jan Reedy2020-02-281-0/+8
| | | | Previously, the button-up part of selecting with a mouse was treated as a click that meant 'jump' to this line, which modified the context and undid the selection
* bpo-39663: IDLE: Add additional tests for pyparse (GH-18536)Cheryl Sabella2020-02-181-2/+14
| | | | | | Test when find_good_parse_start should return 0. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-30780: Add IDLE configdialog tests (#3592)Cheryl Sabella2020-01-271-22/+136
| | | | | | | Expose dialog buttons to test code and complete their test coverage. Complete test coverage for highlights and keys tabs. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-39388: IDLE: Fix bug when cancelling out of configdialog (GH-18068)Cheryl Sabella2020-01-251-7/+14
| | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-39050: The Help button in IDLE's config menu works again (GH-17611)Zackery Spytz2020-01-231-0/+11
| | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-32989: IDLE - fix bad editor call of pyparse method (GH-5968)Cheryl Sabella2020-01-212-12/+114
| | | | | | | | Fix comments and add tests for editor newline_and_indent_event method. Remove unused None default for function parameter of pyparse find_good_parse_start method and code triggered by that default. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-38862: IDLE Strip Trailing Whitespace fixes end newlines (GH-17366)Terry Jan Reedy2019-11-242-28/+39
| | | Extra newlines are removed at the end of non-shell files. If the file only has newlines after stripping other trailing whitespace, all are removed, as is done by patchcheck.py.
* bpo-38636: Fix IDLE tab toggle and file indent width (GH-17008)Terry Jan Reedy2019-11-201-2/+37
| | | | | These Format menu functions (default shortcuts Alt-T and Alt-U) were mistakenly disabled in 3.7.5 and 3.8.0.
* bpo-4630: Add cursor no-blink option for IDLE (GH-16960)Zackery Spytz2019-11-131-0/+4
| | | This immediately toggles shell, editor, and output windows, but does not affect other input widgets.