summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test
Commit message (Collapse)AuthorAgeFilesLines
* bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163)Miss Islington (bot)2021-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> (cherry picked from commit 23a567c11ca36eedde0e119443c85cc16075deaf) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-43008: Make IDLE respect sys.excepthook (GH-24302)Miss Islington (bot)2021-01-271-4/+39
| | | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 7a34380ad788886f5ad50d4175ceb2d5715b8cff) Co-authored-by: Ken <kenny2minecraft@gmail.com>
* bpo-43013: Fix old tkinter module names in idlelib (GH-24326)Miss Islington (bot)2021-01-255-17/+16
| | | | | | | | | Lowercase 'tkColorChooser', 'tkFileDialog', 'tkSimpleDialog', and 'tkMessageBox' and remove 'tk'. Just lowercase 'tkFont' as 'font' is already used. Adjust import. (cherry picked from commit 879986d8a932c4524cb6ff822afc9537de16e28d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-43013: Update idlelib code to 3.x (GH-24315)Miss Islington (bot)2021-01-246-38/+40
| | | | | | | Remove 9 remaining '(object)' occurrences in class headers in idlelib and 25 '()' occurrences in idlelib.idle_test class headers. (cherry picked from commit 8dfe15625e6ea4357a13fec7989a0e6ba2bf1359) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)Miss Islington (bot)2021-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. (cherry picked from commit 81f87bbf9f65702062021a78abd9b8f82c98a414) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.9] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)Terry Jan Reedy2021-01-051-0/+152
| | | | | | | | Make menu items work with formatter, add docstrings, add 100% tests. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit e40e2a2cc94c554e7e245a8ca5a7432d31a95766) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447)Miss Islington (bot)2020-11-221-2/+4
| | | | | (cherry picked from commit 453bc1da2023d6cbe362637a2e0b06d0521f013c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-42416: Use inspect.getdoc for IDLE calltips (GH-23416)Miss Islington (bot)2020-11-201-2/+7
| | | | | | Inspect.getdoc(ob) sometimes gets docstrings when ob.__doc__ is None. (cherry picked from commit 7ddbaa7a1b3e61847ee99658be6a7268a049e302) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-40511: Stop unwanted flashing of IDLE calltips (GH-20910)Miss Skeleton (bot)2020-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> (cherry picked from commit da7bb7b4d769350c5fd03e6cfb16b23dc265ed72) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-33987: Add master ttk Frame to IDLE search dialogs (GH-22942)Miss Skeleton (bot)2020-10-251-7/+7
| | | | | (cherry picked from commit 5df6c99cb450fe2f30be681dbf68cd1d34d3bbe4) Co-authored-by: Mark Roseman <mark@markroseman.com>
* bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)Miss Islington (bot)2020-09-221-5/+3
| | | | | | | The marker was added to the language in 3.8 and 3.7 only gets security patches. (cherry picked from commit 40a0625792e795cd41c4ba20475e3b770b53817a) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-41514: Fix buggy IDLE test (GH-21808)Miss Islington (bot)2020-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. (cherry picked from commit 416f0b71ba84fe83ee2ba4399b8a28712702980b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-41468: Improve and test IDLE run error exit (GH-21798)Miss Islington (bot)2020-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. (cherry picked from commit f2e161c27964a59bc5ab20d96f87ba5862c6222d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Improve renamed test_run.RecursionLimitTest (GH-21794)Miss Islington (bot)2020-08-091-3/+5
| | | | | | PEP 8 style and new comments. (cherry picked from commit 8b67bf907c51846853127176cbb2982d102a2c2d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-37765: Add keywords to IDLE tab completions (GH-15138)Miss Islington (bot)2020-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> (cherry picked from commit bce2eb4646021910aa4074d86f44a09b32d0b2b2) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-41152: IDLE: always use UTF-8 for standard IO streams (GH-21214)Miss Islington (bot)2020-06-301-5/+0
| | | | | (cherry picked from commit 2515a28230b1a011205f30263da6b01c6bd167a3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41144: Fix IDLE open module error (GH-21182)Miss Islington (bot)2020-06-281-0/+3
| | | | | | | | Could not open os.path. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 8ab77c6f9fb6ef86af8f6b8722a2fcb37438edd0) Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* bpo-39885: Make IDLE context menu cut and copy work again (GH-18951)Miss Islington (bot)2020-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. (cherry picked from commit 97e4e0f53d6690db6b942678489716a30925b8af) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311)Miss Islington (bot)2020-05-241-1/+1
| | | | | | This was the only failure running unittest.main(test.test_idle) after imports. (cherry picked from commit 905b3cd05f8d2c29e1605d109900e3e9d07af4d3) Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
* 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.
* bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103)Zackery Spytz2019-11-121-6/+18
|
* bpo-36698: IDLE no longer fails when write non-encodable characters to ↵Serhiy Storchaka2019-10-081-20/+40
| | | | | | | stderr. (GH-16583) It now escapes them with a backslash, as the regular Python interpreter. Added the "errors" field to the standard streams.
* bpo-13153: Use OS native encoding for converting between Python and Tcl. ↵Serhiy Storchaka2019-10-041-12/+0
| | | | | | | | | | | | | (GH-16545) On Windows use UTF-16 (or UTF-32 for 32-bit Tcl_UniChar) with the "surrogatepass" error handler for converting to/from Tcl Unicode objects. On Linux use UTF-8 with the "surrogateescape" error handler for converting to/from Tcl String objects. Converting strings from Tcl to Python and back now never fails (except MemoryError).
* bpo-38183: Test_idle ignores user config directory GH-16198)Terry Jan Reedy2019-09-161-7/+7
| | | | | It no longer tries to create or access .idlerc or any files within. Users must run IDLE to discover problems with saving settings.
* bpo-38041: Refine IDLE Shell restart lines. (GH-15709)Terry Jan Reedy2019-09-061-0/+22
| | | Restart lines now always start with '=' and never end with ' ' and fill the width of the window unless that would require ending with ' ', which could be wrapped by itself and possible confusing the user.
* bpo-37902: IDLE: Add scrolling for IDLE browsers. (#15368)GeeTransit2019-09-052-1/+36
| | | | Modify the wheel event handler so it can also be used for module, path, and stack browsers. Patch by George Zhang.
* bpo-35771: IDLE: Fix flaky tool-tip hover delay tests (GH-15634)Tal Einat2019-09-031-44/+59
| | | | Extending the hover delay in test_tooltip should avoid spurious test_idle failures. One longer delay instead of two shorter delays results in a net speedup.
* bpo-37929: IDLE: avoid Squeezer-related config dialog crashes (GH-15452)Tal Einat2019-08-251-14/+3
| | | | | | | | | These were caused by keeping around a reference to the Squeezer instance and calling it's load_font() upon config changes, which sometimes happened even if the shell window no longer existed. This change completely removes that mechanism, instead having the editor window properly update its width attribute, which can then be used by Squeezer.
* bpo-36419: IDLE - Refactor autocompete and improve testing. (#15121)Terry Jan Reedy2019-08-041-99/+149
|
* bpo-37706: IDLE - fix sidebar code bug and drag tests (GH-15103)Tal Einat2019-08-042-28/+37
| | | Convert mouse y to line number in the sidebar rather than the text.
* Fix idlelib typos discovered by min ho, pr 15018. (GH-15029)Terry Jan Reedy2019-07-301-2/+2
|
* bpo-37706: Disable 3 IDLE scrollbar tests on Mac. (#15010)Terry Jan Reedy2019-07-291-7/+29
| | | They pass with tk 8.5.9 (Azure) but fail with the 8.6.x we install.
* bpo-37628: Fix IDLE config sample sizes (#14958)Tal Einat2019-07-272-5/+57
| | | | The boxes for the font and highlight samples are now constrained by the overall config dialog size. They gain scrollbars when the when a large font size makes the samples too large for the box.
* bpo-17535: IDLE editor line numbers (GH-14030)Tal Einat2019-07-233-39/+403
|
* bpo-37627: Initialize IDLE Custom Run dialog with previous entries (#14870)Ngalim Siregar2019-07-211-4/+6
| | | Repeat the command line arguments most recently entered before so the user can edit them.
* bpo-33610: IDLE's code-context always shows current context immediately ↵Tal Einat2019-07-181-3/+14
| | | | | | | (GH-14821) Eliminate delay of up to 100ms and accompanying visual artifact. Fix bug of never showing context when hide and show.
* bpo-36390: Gather IDLE Format menu functions into format.py (#14827)Terry Jan Reedy2019-07-182-53/+46
| | | | | | Add two indent spec methods from editor and Rstrip to existing file. Tests are not added for indent methods because they need change in lights of 3.x's prohibition on mixing tabs and spaces.
* bpo-36390: IDLE: Combine region formatting methods. (GH-12481)Cheryl Sabella2019-07-171-20/+218
| | | | | Rename paragraph.py to format.py and add region formatting methods from editor.py. Add tests for the latter.
* bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)Tal Einat2019-07-171-58/+86
| | | | | | | | | | | * Only create CodeContext instances for "real" editors windows, but not e.g. shell or output windows. * Remove configuration update Tk event fired every second, by having the editor window ask its code context widget to update when necessary, i.e. upon font or highlighting updates. * When code context isn't being shown, avoid having a Tk event fired every 100ms to check whether the code context needs to be updated. * Use the editor window's getlineno() method where applicable. * Update font of the code context widget before the main text widget