summaryrefslogtreecommitdiff
path: root/Lib/idlelib/idle_test
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests ↵Miss Islington (bot)2018-08-043-1/+150
| | | | | | | | | | | (GH-7683) * make CallTip and ToolTip sub-classes of a common abstract base class * remove ListboxToolTip (unused and ugly) * greatly increase test coverage * tested on Windows, Linux and macOS (cherry picked from commit 87e59ac11ee074b0dc1bc864c74fac0660b27f6e) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-33975: Avoid small type when running IDLE's htests. (GH-7944)Miss Islington (bot)2018-06-261-0/+1
| | | | | | | | | | | | Import pyshell first in htest to call SetProcessDpiAwareness on Windows before tkinter.Tk() is called for the htest. Apparently, 'root.destroy()' undoes a previous 'root = Tk()'. Since IDLE unittests always destroy roots, a unittest before an htest does not require anything more to work right. Since part of the purpose of human-viewed tests is to determine that widgets look right, it is important that they look the same for testing as when running IDLE. (cherry picked from commit 3c8043d8fac4c0d05c0ba9e4e555e2f3165f2fe0) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33951: IDLE test_configdialog: call page.update in setUpClass (GH-7892)Miss Islington (bot)2018-06-241-0/+4
| | | | | | | | | | This avoids a failure in at least one case when running only a single test method rather than all tests in the module. The issue came up when testing the following on Windows 10 Pro 64-bit: HighPageTest.test_highlight_target_text_mouse (cherry picked from commit 2af9f5d334eeca588eeee87d177faf0012c63a03) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-33950: Remove IDLE htest spec for a deleted file. (GH-7881)Miss Islington (bot)2018-06-231-10/+0
| | | | | | | In configdialog, the custom tabbedpages widget was replaced by ttk.notebook several months ago. (cherry picked from commit 5ae70f66ff1949eec35ff207c97cfe572c4e74c8) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)Miss Islington (bot)2018-06-211-9/+20
| | | | | | Increases coverage by 44%. (cherry picked from commit bcd3a1a18d841338f57c39f6a7de8cf14d0c3e03) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)Miss Islington (bot)2018-06-201-1/+1
| | | | | | | Every other menudef key is the lowercase version of the corresponding main menu entry (in this case, 'Window'). (cherry picked from commit 33c7420e7dd9d8e5b2aa15e98da6291bab6fcf33) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33906: Rename idlelib.windows as window (GH-7833)Miss Islington (bot)2018-06-202-9/+9
| | | | | | | Match Window on the main menu and remove last plural module name. Change imports, test, and attribute references to match new name. (cherry picked from commit a361e89d5ae3daefe9e8b8a7e889cd2ad8c45b77) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33917: Fix and document idlelib/idle_test/template.py (GH-7830)Miss Islington (bot)2018-06-202-26/+38
| | | | | | | The revised file compiles, runs, and tests OK. idle_test/README.txt explains how to use it to create new IDLE test files. (cherry picked from commit 87a927325e3856621790a39d8718ff24a19510aa) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33904: In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)Miss Islington (bot)2018-06-201-2/+2
| | | | | (cherry picked from commit 9bb92235f6272b28d59fcbd04f101fdc6b1bbc50) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
* bpo-33907: Rename an IDLE module and classes. (GH-7810)Miss Islington (bot)2018-06-191-2/+2
| | | | | | | | Fix-up class name duplication in PR GH-7807. Combined effect is that module calltips and its class CallTips are now calltip and Calltip. In module calltip_w class CallTip is now CalltipWindow. (cherry picked from commit 9af1836664d241fec6e62955ffaa559b3a2eaf1b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33907: Rename an IDLE module and class. (GH-7807)Miss Islington (bot)2018-06-192-14/+14
| | | | | | | Improve consistency and appearance. Module idlelib.calltips is now calltip. Class idlelib.calltip_w.CallTip is now Calltip. (cherry picked from commit 06e2029dfa500a42e3565ed7ba8573412f153d1c) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33855: Still more edits and minimal tests for IDLE (GH-7784)Miss Islington (bot)2018-06-1916-63/+284
| | | | | | | Part 3 of 3, continuing PR GH-7689. This covers 14 idlelib modules and their tests, rpc to zoomheight except for run (already done) and tooltip (being done separately). (cherry picked from commit 4d92158f4c3917fc4fbfebff15224e74782abf79) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33855: More edits and new minimal tests for IDLE (GH-7761)Miss Islington (bot)2018-06-1818-310/+444
| | | | | | | Part 2 of 3. Continues PR GH-7689, changeset ee5ef30. Edit and add tests for 18 modules, help_about to replace and run. (cherry picked from commit ea3dc8029ab6a0f1ee6a8a72f1612dea74892e08) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33855: Minimally test all IDLE modules. (GH-7689)Miss Islington (bot)2018-06-1521-84/+366
| | | | | | Create a template for minimally testing a tkinter-using module by importing it and instantiating its class(es). Add a test file for all non-startup IDLE modules. Edit existing files and update coverage. This is part 1 of 3, covering the 21 autocomplete to help modules and touching 33 idlelib files. (cherry picked from commit ee5ef309c7e2daef1248730145408f700732c42e) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33768: IDLE: Clicking on code context line moves it to top of editor ↵Miss Islington (bot)2018-06-071-0/+34
| | | | | | | (GH-7411) (cherry picked from commit 041272b657867f5bec925b19aabf23944125d49b) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)Miss Islington (bot)2018-06-041-31/+31
| | | | | (cherry picked from commit b609e687a076d77bdd687f5e4def85e29a044bfc) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)Miss Islington (bot)2018-06-011-8/+30
| | | | | | | | | | | | | | | | The difference from before is that the settings are now on the Highlights tab instead of the Extensions tab and only change one theme at a time instead of all themes. The default for light themes is black on light gray, as before. The default for the IDLE Dark theme is white on dark gray, which better fits the dark theme. When one starts IDLE from a console and loads a custom theme without definitions for 'context', one will see a warning message on the console. To stop the warning, go to Options => Configure IDLE => Highlights, select the custom theme if not selected already, select 'Code Context', and select foreground and background colors. (cherry picked from commit de6516264e793be991f692fdd892707afb9104a7) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)Miss Islington (bot)2018-06-012-14/+17
| | | | | | | | | | | | | Instead of displaying a fixed number of lines, some blank, Code Context now displays the variable number of actual context lines. When there are no context lines, it shows a single blank line to indicate that the feature is turned on. The Code Context configuration option is changed from 'numlines' (default 3) to 'maxlines' (default 15) to avoid possible interference between user settings for the old and new versions of Code Context. (cherry picked from commit 29996a1c4e8bd6dde6adce2b44d11a0982a47a3a) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33628: IDLE: Minor code cleanup of codecontext.py and its tests (GH-7085)Miss Islington (bot)2018-05-231-19/+20
| | | | | (cherry picked from commit 8506016f904ba6bc27bf5261f27a0bdd5945cd26) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32831: IDLE: Add docstrings and tests for codecontext (GH-5638)Miss Islington (bot)2018-05-191-0/+347
| | | | | (cherry picked from commit 654038d896d78a8373b60184f335acd516215acd) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.7] Fix duplicating words words. (GH-6296) (GH-6297)Serhiy Storchaka2018-03-282-2/+2
| | | | | Most of them have been added in 3.7. (cherry picked from commit bac2d5ba30339298db7d4caa9c8cd31d807cf081)
* bpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)Miss Islington (bot)2018-02-281-42/+14
| | | | | | The new code also runs faster. (cherry picked from commit f0daa880a405c8de6743e44fa46006754aa145c9) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)Miss Islington (bot)2018-02-231-35/+35
| | | | | | Adjust tests and user modules to match. (cherry picked from commit c29c03a34a9f3c82704b66f323ce5ea9dc89c8af) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32905: IDLE - remove unused code in pyparse module (GH-5807)Miss Islington (bot)2018-02-211-30/+4
| | | | | | dump is similar to print but less flexible. lastopenbracketpos is now always initialized in _study2, as was stmt_bracketing, so the class settings are not needed. get_last_open_bracket_pos is never called. (cherry picked from commit 451d1edaf4d27c4e632d81246d308e8dd6ea945f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-32874: IDLE: add tests for pyparse (GH-5755)Miss Islington (bot)2018-02-211-0/+523
| | | | | | There are no code changes other than comments and docstrings. (cherry picked from commit c84cf6c03fce1fb73bfaf91d7909f1c2708f14a2) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)Miss Islington (bot)2018-02-121-3/+4
| | | | | | | Using the system and place-dependent default encoding for open() is a bad idea for IDLE's system and location-independent files. (cherry picked from commit 688722cedd6437910ff185ecf94fb3b749ad37f2) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. ↵Miss Islington (bot)2018-02-121-25/+27
| | | | | | | | | | | (GH-5639) GUI test test_file_buttons() only looks at initial ascii-only lines, but failed on systems where open() defaults to 'ascii' because readline() internally reads and decodes far enough ahead to encounter a non-ascii character in CREDITS.txt. (cherry picked from commit f34e03ec0ea6a4cef8d966087c77e616c4a5893b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Fix idlelib comment typos reported by Mike on pull request 4803. (#4807)Terry Jan Reedy2017-12-112-2/+2
|
* bpo-32100: IDLE: Fix pathbrowser errors; improve tests. (#4484)Cheryl Sabella2017-11-222-16/+77
| | | Patch mostly by Cheryl Sabella
* Fix miscellaneous typos (#4275)luzpaz2017-11-051-2/+2
|
* bpo-31860: Make the font sample in the IDLE font configuration dialog ↵Serhiy Storchaka2017-10-271-3/+3
| | | | | editable. (#4106) Changes persist while IDLE remains open
* bpo-28603: Fix formatting tracebacks for unhashable exceptions (#4014)Zane Bitter2017-10-181-0/+35
|
* bpo-25588: Document autotest in idle_test/README.txt. (#4000)Terry Jan Reedy2017-10-141-1/+10
| | | Follow-up to Victor's patch that enabled autotest to run in IDLE's Shell.
* bpo-30397: Add re.Pattern and re.Match. (#1646)Serhiy Storchaka2017-10-041-1/+1
|
* bpo-31460: Simplify the API of IDLE's Module Browser. (#3842)Terry Jan Reedy2017-09-301-10/+4
| | | | | | Passing a widget instead of an flist with a root widget opens the option of creating a browser frame that is only part of a window. Passing a full file name instead of pieces assumed to come from a .py file opens the possibility of browsing python files that do not end in .py.
* bpo-31459: Rename IDLE's module browser from Class Browser to Module ↵Cheryl Sabella2017-09-232-22/+22
| | | | | | | | | | | Browser. (#3704) The original module-level class and method browser became a module browser, with the addition of module-level functions, years ago. Nested classes and functions were added yesterday. For back- compatibility, the virtual event <<open-class-browser>>, which appears on the Keys tab of the Settings dialog, is not changed. Patch by Cheryl Sabella.
* bpo-31559: Remove test order dependence in idle_test.test_browser. (#3708)Terry Jan Reedy2017-09-231-17/+34
| | | | | Order dependence caused leak-test buildbots to fail when running test_idle repeatedly.
* bpo-1612262: IDLE: Class Browser shows nested functions, classes (#2573)Cheryl Sabella2017-09-221-0/+242
| | | | Original patches for code and tests by Guilherme Polo and Cheryl Sabella, respectively.
* bpo-31488: IDLE - update former extensions when options change. (#3612)Terry Jan Reedy2017-09-161-1/+1
| | | | | When apply changes, call .reload on each class with non-key options. Change ParenMatch so that updates affect current instances.
* bpo-31480: IDLE - fix tests to pass with zzdummy extension disabled. (#3590)Terry Jan Reedy2017-09-142-44/+39
| | | Enabled by default was a temporary expedient. The fix is to add a user override to enable.
* bpo-31462: Remove trailing whitespaces. (#3564)Serhiy Storchaka2017-09-141-1/+1
|
* bpo-31414: IDLE -- fix tk entry box tests by deleting first. (#3501)Terry Jan Reedy2017-09-111-11/+17
| | | | | Adding to an int entry is not the same as deleting and inserting because int('') will fail.
* bpo-27099: IDLE - Convert built-in extensions to regular features (#2494)wohlganger2017-09-102-52/+58
| | | | | | | | | | | | | | | | | | | | | About 10 IDLE features were implemented as supposedly optional extensions. Their different behavior could be confusing or worse for users and not good for maintenance. Hence the conversion. The main difference for users is that user configurable key bindings for builtin features are now handled uniformly. Now, editing a binding in a keyset only affects its value in the keyset. All bindings are defined together in the system-specific default keysets in config- extensions.def. All custom keysets are saved as a whole in config- extension.cfg. All take effect as soon as one clicks Apply or Ok. The affected events are '<<force-open-completions>>', '<<expand-word>>', '<<force-open-calltip>>', '<<flash-paren>>', '<<format-paragraph>>', '<<run-module>>', '<<check-module>>', and '<<zoom-height>>'. Any (global) customizations made before 3.6.3 will not affect their keyset- specific customization after 3.6.3. and vice versa. Inital patch by Charles Wohlganger, revised by Terry Jan Reedy.
* bpo-30617: IDLE: docstrings and unittest for outwin.py (#2046)Cheryl Sabella2017-08-271-0/+172
| | | Move some data and functions from the class to module level. Patch by Cheryl Sabella.
* bpo-31287: IDLE - do not alter tkinter.messagebox in configdialog tests. (#3220)Terry Jan Reedy2017-08-271-4/+4
|
* bpo-30781: IDLE - use ttk widgets in configdialog (#2654)Cheryl Sabella2017-08-261-30/+31
| | | Patch by Cheryl Sabella.
* bpo-31206: IDLE: Factor HighPage class from ConfigDialog (#3156)Cheryl Sabella2017-08-191-28/+28
| | | Patch 2 of 3, to avoid horrendous diff. Create highlights page from new HighPage class instead of old ConfigDialog methods and change tests to match.
* bpo-31001: IDLE: Add tests for configdialog highlight tab (#3123)Cheryl Sabella2017-08-171-1/+449
|
* bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (#3096)Cheryl Sabella2017-08-151-28/+33
| | | The slightly modified tests continue to pass. Patch by Cheryl Sabella.
* bpo-31002: IDLE: Add tests for configdialog keys tab (#2996)Cheryl Sabella2017-08-141-5/+384
| | | Patch by Cheryl Sabella.