Commit Graph

866 Commits

Author SHA1 Message Date
Terry Jan Reedy 1d6a0c47db Closes Issue 21659: Improve Idle calltips for *args, **kwargs in 2.7, where actual
names are not available. Initial patch by Serhiy Storchaka.
2014-06-09 20:02:18 -04:00
Terry Jan Reedy 2ce98f8c86 whitespace 2014-06-08 14:57:18 -04:00
Terry Jan Reedy 76cdcf747f Issue #21682: Replace EditorWindow with mock to eliminate memory leaks.
Patch by Saimadhav Heblikar. (2 head merge)
2014-06-08 14:47:16 -04:00
Benjamin Peterson 7e1eb5c713 backed out 86ba41b7bb46 (#18910) for test breakage 2014-06-07 17:57:36 -07:00
Terry Jan Reedy ffd6576ad7 Issue #21682: Replace EditorWindow with mock to eliminate memory leaks.
Patch by Saimadhav Heblikar.
2014-06-07 04:27:45 -04:00
Terry Jan Reedy 5d1049cbe8 Issue #18910: test_textView - since all tests require 'gui', make root global.
Subclass TextViewer to add mock methods instead of monkey-patching it.
2014-06-06 17:43:14 -04:00
Zachary Ware 90bcdd71a5 Issue #18292: s/tkinter/Tkinter/ 2014-06-05 15:57:44 -05:00
Terry Jan Reedy 649570a9e7 whitespace 2014-06-05 03:53:42 -04:00
Terry Jan Reedy 562495ab61 Issue #18910: Add unittest for textView. Patch by Phil Webster. 2014-06-05 03:38:28 -04:00
Terry Jan Reedy 6e66cb03b7 Issue #18292: Idle - test AutoExpand. Patch by Saihadhav Heblikar. 2014-06-04 20:50:49 -04:00
Terry Jan Reedy ee0b672f7f Issue #21654: Fix interaction with warnings. Patch by Raymond Hettinger. 2014-06-04 03:09:56 -04:00
Terry Jan Reedy 8ba9e450c9 Issue #18409: Idle: add unittest for AutoComplete. Patch by Phil Webster. 2014-06-03 20:54:15 -04:00
Zachary Ware 9ce635f7bd Issue #18492: Allow all resources when tests are not run by regrtest.py.
This changeset also includes cleanup allowed by this behavior change.
2014-06-02 16:01:16 -05:00
Terry Jan Reedy f74805b2cb Issue #21477: Update htest docstring and remove extraneous differences between
2.7 and 3.4. Original patch by Saimadhav Heblikar.
2014-06-01 00:30:28 -04:00
Benjamin Peterson 15e5a165d0 merge 2.7.7 release branch 2014-05-31 11:24:25 -07:00
Benjamin Peterson 9c70397ea3 bump to 2.7.7 final 2014-05-31 11:17:34 -07:00
Terry Jan Reedy 76916e8404 Issue #21477: Add htests for GrepDialog, UndoDelegator, and configDialog.
Put instructions in a fixed size scrollable Text. Patch by Saimadhav Heblikar.
2014-05-29 01:46:16 -04:00
Terry Jan Reedy d0d4f2d0c6 Issue #21477: Add htests for Search and Replace dialogs.
Patch by Saimadhav Heblikar.
2014-05-27 03:30:44 -04:00
Terry Jan Reedy 985ef28054 Issue #21477: Idle htest: modify run; add more tests.
Patch by Saimadhav Heblikar. 2.7  backport of 90829, d7eea8f608c2.
2014-05-27 02:47:38 -04:00
Terry Jan Reedy 62012fc719 Issue #21477: Idle htest: merge and modify run and runall; add many tests.
Patch by Saimadhav Heblikar
2014-05-24 18:48:03 -04:00
Terry Jan Reedy 4345846161 Issue #21477: idle htests - lower case function names, other cleanups. 2014-05-19 00:12:00 -04:00
Benjamin Peterson 996bf4828d bump to 2.7.7rc1 2014-05-17 17:31:50 -07:00
Terry Jan Reedy fb371afaac Issue #18104: revise docstrings, remove obsolete comments. 2014-05-15 20:49:57 -04:00
Terry Jan Reedy c5945966ae whitespace 2014-05-11 23:37:26 -04:00
Terry Jan Reedy 00b0bd55b4 Issue #18104: Add idlelib/idle_test/htest.py with a few sample tests to begin
consolidating and improving human-validated tests of Idle. Change other files
as needed to work with htest.  Running the module as __main__ runs all tests.
2014-05-11 23:32:20 -04:00
Terry Jan Reedy 46b6c086d3 Issue #21138: Change default reformat paragraph width to PEP 8's 72. 2014-04-22 01:26:35 -04:00
Terry Jan Reedy 0edf52a2c2 Issue 21284: Idle: make test_formatparagraph pass even when a user changes the
reformat width in the configuration menu.
2014-04-22 01:10:57 -04:00
Raymond Hettinger 40e95dfcaa Issue #21029: IDLE now colors print consistently as a keyword. 2014-03-29 21:01:50 -07:00
Ned Deily 57847df4e5 Issue #17654: Ensure IDLE menus are customized properly on OS X for
non-framework builds and for all variants of Tk.
2014-03-27 20:47:04 -07:00
Terry Jan Reedy 44fad467b9 Issue #20567: Delete class attribute gui widgets in idle tests.
Code patch by Serhiy Storchaka
2014-02-27 18:47:23 -05:00
Ezio Melotti ac3dfc63b5 #20634: fix typo in IDLE README noticed by Saimadhav Heblikar. 2014-02-15 13:01:08 +02:00
Terry Jan Reedy 4ade2d25fc Issue #20406: Use Python application icons for Idle window title bars.
Patch mostly by Serhiy Storchaka.
2014-02-08 09:39:51 -05:00
Terry Jan Reedy 67908e9a76 Update the python.gif icon for the Idle classbrowser and pathbowser
from the old green snake to the new new blue and yellow snakes.
2014-02-01 23:08:24 -05:00
Terry Jan Reedy 3ac26c1bd2 Idle test: 2nd try at suppressing compile time warning (hint by Nick Coghlan). 2014-01-30 21:37:24 -05:00
Terry Jan Reedy 0a600cf235 Idlelib & buildbots: suppress py3 deprecation message even if enabled. 2014-01-29 14:42:32 -05:00
Terry Jan Reedy 8119c13fe4 Idlelib: silence two buildbot Deprecation Warnings with better code. 2014-01-28 23:13:35 -05:00
Terry Jan Reedy 1d9b9215f0 Issue #17721: Remove non-functional configuration dialog help button until we
make it actually gives some help when clicked. Patch by Guilherme Simões.
2014-01-26 22:24:17 -05:00
Terry Jan Reedy e7ec1be8c7 Idlelib.calltips: add test of starred first parameters. They should not be
removed even for bound methods. (Inspect.signature does, see 20401.)
2014-01-26 21:34:25 -05:00
Terry Jan Reedy e7a72a194d Issue #20338: Increase allowed tip width slightly and wrap long signagure lines.
Original patch by Serhiy Storchaka.
2014-01-26 19:55:07 -05:00
Terry Jan Reedy 5924365528 Issue #17390: Add Python version to Idle editor window title bar.
Original patches by Edmond Burnett and Kent Johnson.
2014-01-23 00:36:37 -05:00
Terry Jan Reedy b190b33f64 Issue #20818: Remove code from idlelib.CallTipWindow.showtip that is now
completely redundant. After 16638 patch, CallTips.get_argspec trims over-long
signature strings as well as docstring lines.
2014-01-21 21:12:13 -05:00
Terry Jan Reedy 82c48e098a Issue #16638: Include up to 5 docstring header lines (before first blank) in
Idle calltips. This is needed for builtins, such 3.x bytes (which is why 5).
Based on patch by Serhiy Storchaka.
2014-01-21 20:45:03 -05:00
Terry Jan Reedy 21334e72fd Issue #16630: Make Idle calltips work even when __getattr__ raises.
Initial patch by Roger Serwy.
2014-01-21 15:36:36 -05:00
Terry Jan Reedy 0e2793c413 Issue #16655: Explain why Idle's test_calltips has 'fragile' tests of builtins.
I do not expect a problem in 2.7, but backported this anyway, 'in case'.
2014-01-21 03:07:43 -05:00
Terry Jan Reedy 598295c63c Issue #21222: Whitespace 2014-01-21 00:31:07 -05:00
Terry Jan Reedy 02fd1fd7fd Issue #20122: Idlelib: Move tests in 3.x CallTips.py to test_calltips.py.
For 2.7 backport, fix get_arg_spec as needed to make expanded tests pass.
2014-01-21 00:26:10 -05:00
Serhiy Storchaka 0b6b335253 Issue #20058: sys.stdin.readline() in IDLE now always returns only one line. 2013-12-25 14:24:17 +02:00
Ned Deily 278543d539 Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial
shell window is present. (Original patch by Terry Reedy)
2013-12-10 16:21:58 -08:00
Serhiy Storchaka 7057f3fa4d Issue #19481: print() of unicode, str or bytearray subclass instance in IDLE
no more hangs.
2013-12-10 10:04:41 +02:00
Benjamin Peterson 278519500f 2.7.6 final 2013-11-10 02:36:30 -05:00
Benjamin Peterson e18b82d996 backport #19426 2013-10-29 15:27:14 -04:00
Benjamin Peterson 07ffc78c9a 2.7.6rc1 2013-10-26 14:57:21 -04:00
Serhiy Storchaka e4818f6937 Remove the use of non-existing re.ASCII.
(fixes a regression in 3d46ef0c62c5, issue #18873)
2013-09-17 10:09:08 +03:00
Serhiy Storchaka e787bce79c Issue #18873: IDLE, 2to3, and the findnocoding.py script now detect Python
source code encoding only in comment lines.
2013-09-17 00:00:46 +03:00
Serhiy Storchaka e03c74a1b6 Issue #18988: The "Tab" key now works when a word is already autocompleted. 2013-09-11 22:49:06 +03:00
Terry Jan Reedy 4c42735a99 Issue #18489: Add complete, gui-free tests for idlelib.SearchEngine.
Patch import and initialization in SearchEngine to make testing easier.
Improve docstrings, especially to clarify the double role of 'ok' parameters.
Original patch by Phil Webster.
2013-08-31 16:27:08 -04:00
Terry Jan Reedy 41fca3e482 Issue #18489: idlelib.SearchEngine - add docstrings
(original patch by Phil Webster).
2013-08-19 01:05:09 -04:00
Terry Jan Reedy a81e969144 Issue #18592: whitespace 2013-08-18 18:27:02 -04:00
Terry Jan Reedy 9946a28988 Issue #18592: Add docstrings to file being tested (idlelib.SearchDialogBase.py). 2013-08-18 18:22:34 -04:00
Ezio Melotti 5dd99ebbc2 #18741: fix more typos. Patch by Févry Thibault. 2013-08-17 16:07:38 +03:00
Terry Jan Reedy 1703df6c93 Issue #18732: Remove unused* parameter output_sep from IdleHistory.History
and paired splits and joins that do nothing when output_sep is its default \n.
*It in unused in that the class in only instantiated once, with the default.
Make a few other changes in .fetch and its test.
2013-08-15 16:19:07 -04:00
Terry Jan Reedy 74b3290c10 Issue #18226: Fix ImportError and subsequent TypeError in 2.7 backport.
Running py27\PCbuild> python_d -m test.regrtest -ugui test_idle
ignores the exceptions and gives no indication of a problem (fixed in 3.3).
2013-08-15 15:07:58 -04:00
Terry Jan Reedy 8ce36dd7aa Issue #18425: Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
Issue #18425: Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.

Issue #18425: Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.

Issue #18425: Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
Issue #18425: Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
Issue #18425: Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
Issue #18425: Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
Issue #18425: Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
Issue #18425: Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
2013-08-15 14:31:55 -04:00
Terry Jan Reedy b638a38dc0 Issue #18425: Add docstrings to IdleHistory.py. Remove redundant 'history_'
prefix from two attributes and two methods of History class.
2013-08-13 19:51:04 -04:00
Terry Jan Reedy 3d35489169 Issue #18226: Add docstrings and unittests for idlelib/FormatParagraph.py.
Move comment code to a separate function so it can be separately tested.
Original patches by Todd Rovito and Phil Webster.
2013-08-10 16:56:20 -04:00
Terry Jan Reedy f948943604 Issue #18151: Replace remaining Idle 'open...close' pairs with 'with open'. 2013-08-04 15:39:56 -04:00
Terry Jan Reedy 9ba8d6bf34 Make all idle test case names end with 'Test'. 2013-07-30 01:37:36 -04:00
Terry Jan Reedy aea6c115ed Update gui section of idle test README. 2013-07-28 16:39:44 -04:00
Terry Jan Reedy 09eb26fe26 Issue #18441: Make test.support.requires('gui') skip when it should.
(Consolidating this check and various checks in tkinter files and moving them
to test.support and test.regrtest will be another issue.)
2013-07-21 20:13:24 -04:00
Terry Jan Reedy 349065500a Issue #18539: Calltips now work for float default arguments. 2013-07-26 18:21:32 -04:00
Terry Jan Reedy f688f725b5 Backed out changeset: 23b0164b9c82 #18441 not working 2013-07-21 21:57:52 -04:00
Terry Jan Reedy 2c636fd655 Issue #18441: Make test.support.requires('gui') skip when it should.
(Consolidating this check and various checks in tkinter files and moving them
to test.support and test.regrtest will be another issue.)
2013-07-21 20:13:24 -04:00
Ned Deily 14ef0c8d6b Issue #17532: Prevent exception when changing key sets if Options menu is empty. 2013-07-20 14:38:24 -07:00
Terry Jan Reedy a25a31a901 Issue #18365: convert buildbot errors to skips. 2013-07-13 04:05:42 -04:00
Terry Jan Reedy c8a198ce02 Issue #18279: Add tests for idlelib/RstripExtension.py. Original patch by
Phil Webster. With that available, modify RstripExtension.py to stop deleting
null slices, which caused a file to be marked as changed when it was not.
2013-07-13 02:34:35 -04:00
Terry Jan Reedy e7cbd3f07c Issue #18365: 2.7 corrections so tests run 2013-07-13 00:02:27 -04:00
Terry Jan Reedy fccb0d2d0d Issue #18365: normalize whitespace 2013-07-12 20:18:33 -04:00
Terry Jan Reedy 16c107046f Issue #18365: Add mock Text class and test thereof versus tk.Text.
Based on patches by Todd.Rovito and Phil Webster.
2013-07-12 20:10:17 -04:00
Terry Jan Reedy 44d8b11c3e Issue #7136: In the Idle File menu, "New Window" is renamed "New File".
Patch by Tal Einat, Roget Serwy, and Todd Rovito.
2013-07-01 00:42:44 -04:00
Terry Jan Reedy b6eeef4165 Issue #8515: Set __file__ when run file in IDLE. Backport 2c276d0553ff by
Andrew Svetlov, based on initial patch by Bruce Frederiksen.
2013-06-30 19:07:49 -04:00
Terry Jan Reedy d1caae86e5 Issue #18189: add test_delegator for Idle Delegator class.
Also change private dict used as a set to a set.
2013-06-30 18:36:53 -04:00
Terry Jan Reedy 7ab0c310c7 Issue 18189: remove unused methods in idlelib.Delegator.Delegator.
Idle code already uses x.delegate instead of x.getdelegate().
The printed report must have been for testing.
2013-06-30 16:51:53 -04:00
Terry Jan Reedy 1d14246b77 Issue #18103: Update README.txt and test_idle to describe and run gui tests. 2013-06-29 18:22:02 -04:00
Terry Jan Reedy 2b149860a0 Issue #18316: Update idlelib 2.7 except clauses to ease backports. 2013-06-29 00:59:34 -04:00
Terry Jan Reedy 8eab008b53 Issue *18081, #18242: Change Idle warnings capture in PyShell and run to stop
replacing warnings.formatwarnings and to reverse replacement of
warnings.showwarnings when import is complete and when main function exits.
Add test_warning.py. Vinay Sajip provided capture_warnings function.
2013-06-28 23:51:34 -04:00
Terry Jan Reedy 223a22b6ab #18151, part 2: Silence debug build resource warning for each file opened by
'Find in files' by replacing 'open with implicit close' by 'with open' in
GrepDialog method grep_it. Streamline code with enumerate(), direct file
iteration, and output tweak. Add test for this method, including output format.
2013-06-22 18:26:38 -04:00
Roger Serwy 16ce43a6d8 #5492: Avoid traceback when exiting IDLE caused by a race condition. 2013-06-11 22:13:17 -05:00
Roger Serwy fff3f48365 #17511: Keep IDLE find dialog open after clicking "Find Next".
Original patch by Sarah K.
2013-06-10 23:01:20 -05:00
Terry Jan Reedy 8d6834a28e Issue18130: Test class idlelib.configSectionNameDialog.GetCfgSectionNameDialog.
Fix bug in existing human test and add instructions; fix two bugs in tested
code; remove redundancies, add spaces, and change two internal method names.
Add mock_tk with mocks for tkinter.Variable subclasses and tkinter.messagebox.
Use mocks in test_config_name to unittest methods that are otherwise gui-free.
2013-06-05 14:24:42 -04:00
Terry Jan Reedy b8fd9cafbe Issue #15392: Create a unittest framework for IDLE, 2.7 version.
Preliminary patch by Rajagopalasarma Jayakrishnan.
2013-05-30 14:47:33 -04:00
Ned Deily 674f4fa2ad Issue #17532: Always include Options menu for IDLE on OS X.
Patch by Guilherme Simões.
2013-05-22 15:16:17 -07:00
Roger Serwy 02c0ed0612 #14146: Highlight source line while debugging on Windows. 2013-05-20 22:13:39 -05:00
Benjamin Peterson 086494483d bump version to 2.7.5 2013-05-11 22:29:20 -05:00
Benjamin Peterson 5a27168883 prevent IDLE from trying to close when sys.stdin is reassigned (#17838) 2013-05-11 22:24:28 -05:00
Roger Serwy 90f8b23be2 #14735: Update IDLE docs to omit "Control-z on Windows". 2013-04-17 00:22:50 -05:00
Roger Serwy 53dc4f0148 #17585: Fixed IDLE regression. Now closes when using exit() or quit(). 2013-04-11 19:13:21 -05:00
Roger Serwy 789299f858 #17657: Show full Tk version in IDLE's about dialog.
Patch by Todd Rovito.
2013-04-08 20:57:13 -05:00
Roger Serwy 4e9a705887 #17613: Prevent traceback when removing syntax colorizer in IDLE. 2013-04-07 12:41:16 -05:00
Roger Serwy 231a8fd22d #1207589: Backwards-compatibility patch for right-click menu in IDLE. 2013-04-07 12:15:52 -05:00
Roger Serwy 75b249c914 #16887: IDLE now accepts Cancel in tabify/untabify dialog box. 2013-04-06 20:26:53 -05:00