summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33975: Avoid small type when running IDLE's htests. (GH-7944)Terry Jan Reedy2018-06-271-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.
* bpo-33951: IDLE test_configdialog: call page.update in setUpClass (GH-7892)Tal Einat2018-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
* bpo-33950: Remove IDLE htest spec for a deleted file. (GH-7881)Terry Jan Reedy2018-06-231-10/+0
| | | | In configdialog, the custom tabbedpages widget was replaced by ttk.notebook several months ago.
* bpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)Terry Jan Reedy2018-06-221-9/+20
| | | Increases coverage by 44%.
* bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)Terry Jan Reedy2018-06-211-1/+1
| | | | | Every other menudef key is the lowercase version of the corresponding main menu entry (in this case, 'Window').
* bpo-33906: Rename idlelib.windows as window (#7833)Terry Jan Reedy2018-06-212-9/+9
| | | | Match Window on the main menu and remove last plural module name. Change imports, test, and attribute references to match new name.
* bpo-33917: Fix and document idlelib/idle_test/template.py (GH-7830)Terry Jan Reedy2018-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.
* bpo-33904: In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2018-06-201-2/+2
|
* bpo-33907: Rename an IDLE module and classes. (GH-7810)Terry Jan Reedy2018-06-201-2/+2
| | | | | Fix-up class name duplication in PR #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.
* bpo-33907: Rename an IDLE module and class. (GH-7807)Terry Jan Reedy2018-06-202-14/+14
| | | | Improve consistency and appearance. Module idlelib.calltips is now calltip. Class idlelib.calltip_w.CallTip is now Calltip.
* bpo-33855: Still more edits and minimal tests for IDLE (GH-7784)Terry Jan Reedy2018-06-1916-63/+284
| | | | | Part 3 of 3, continuing PR #7689. This covers 14 idlelib modules and their tests, rpc to zoomheight except for run (already done) and tooltip (being done separately).
* bpo-33855: More edits and new minimal tests for IDLE (GH-7761)Terry Jan Reedy2018-06-1818-310/+444
| | | | Part 2 of 3. Continues PR #7689, changeset ee5ef30. Edit and add tests for 18 modules, help_about to replace and run.
* bpo-33855: Minimally test all IDLE modules. (GH-7689)Terry Jan Reedy2018-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.
* bpo-33768: IDLE: Clicking on code context line moves it to top of editor ↵Cheryl Sabella2018-06-081-0/+34
| | | | (GH-7411)
* bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)Cheryl Sabella2018-06-041-31/+31
|
* bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)Cheryl Sabella2018-06-021-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.
* bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)Cheryl Sabella2018-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.
* bpo-33628: IDLE: Minor code cleanup of codecontext.py and its tests (GH-7085)Cheryl Sabella2018-05-241-19/+20
|
* bpo-32831: IDLE: Add docstrings and tests for codecontext (GH-5638)Cheryl Sabella2018-05-191-0/+347
|
* Fix duplicating words words. (GH-6296)Serhiy Storchaka2018-03-282-2/+2
| | | Most of them have been added in 3.7.
* bpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)Cheryl Sabella2018-02-281-42/+14
| | | The new code also runs faster.
* bpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)Cheryl Sabella2018-02-241-35/+35
| | | Adjust tests and user modules to match.
* bpo-32905: IDLE - remove unused code in pyparse module (GH-5807)Terry Jan Reedy2018-02-221-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.
* bpo-32874: IDLE: add tests for pyparse (GH-5755)Cheryl Sabella2018-02-221-0/+523
| | | | There are no code changes other than comments and docstrings.
* bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)Terry Jan Reedy2018-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.
* bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. ↵Terry Jan Reedy2018-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.
* Fix idlelib comment typos reported by Mike on pull request 4803. (#4807)Terry Jan Reedy2017-12-122-2/+2
|
* bpo-32100: IDLE: Fix pathbrowser errors; improve tests. (#4484)Cheryl Sabella2017-11-232-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-281-3/+3
| | | | | editable. (#4106) Changes persist while IDLE remains open
* bpo-28603: Fix formatting tracebacks for unhashable exceptions (#4014)Zane Bitter2017-10-171-0/+35
|
* bpo-25588: Document autotest in idle_test/README.txt. (#4000)Terry Jan Reedy2017-10-151-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-201-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-181-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-151-5/+384
| | | Patch by Cheryl Sabella.
* bpo-19903: IDLE: Calltips changed to use inspect.signature (#2822)Louie Lu2017-08-101-12/+37
| | | | | Idlelib.calltips.get_argspec now uses inspect.signature instead of inspect.getfullargspec, like help() does. This improves the signature in the call tip in a few different cases, including builtins converted to provide a signature. A message is added if the object is not callable, has an invalid signature, or if it has positional-only parameters. Patch by Louie Lu.