Commit Graph

158 Commits

Author SHA1 Message Date
Terry Jan Reedy 3d7281d2bd Issue 20567: Revise idle_test/README.txt and some tests to match new advice. 2016-06-03 22:28:05 -04:00
Terry Jan Reedy 75cbeb5dac Issue 20567: Revise idle_test/README.txt and some tests to match new advice. 2016-06-03 22:19:17 -04:00
Martin Panter e514093a2f Issue #27125: Merge typo fixes from 3.5 2016-05-30 05:24:49 +00:00
Martin Panter a90a4a9651 Issue #27125: Remove duplicated words from documentation and comments 2016-05-30 04:04:50 +00:00
Terry Jan Reedy 6fa5bdc6e8 Issue #24225: Within idlelib files, update idlelib module names.
This follows the previous patch that changed idlelib file names.
Class names that matched old module names are not changed.
Change idlelib imports in turtledemo.__main__.

Exception: config-extensions.def.  Previously, extension section
names, file names, and class names had to match.  Changing section
names would create cross-version conflicts in config-extensions.cfg
(user customizations).  Instead map old names to new file names
at point of import in editor.EditorWindow.load_extension.

Patch extensively tested with test_idle, idle_test.htest.py, a custom
import-all test, running IDLE in a console to catch messages,
and testing each menu item.  Based on a patch by Al Sweigart.
2016-05-28 13:22:31 -04:00
Terry Jan Reedy 0d9220e162 Issue #24225: Rename many idlelib/*.py and idlelib/idle_test/test_*.py files. 2016-05-22 19:10:31 -04:00
Terry Jan Reedy 092473eef9 Issue #21939: Test IDLE percolator. Original patch by Saimadhav Heblikar. 2016-05-17 22:48:22 -04:00
Terry Jan Reedy fdec2a3424 Issue #21676: test IDLE replace dialog. Original patch by Saimadhav Heblikar. 2016-05-17 19:58:02 -04:00
Terry Jan Reedy c359af1530 Issue #18410: add missing parent argument. 2016-05-17 18:35:07 -04:00
Terry Jan Reedy b236fe4515 Issue #18410: Test IDLE's search dialog; original patch by Westley Martínez. 2016-05-17 18:18:37 -04:00
Terry Jan Reedy 0495fa81e6 Issue #21703: Add test for undo delegator. Patch most by Saimadhav Heblikar . 2016-05-16 23:32:28 -04:00
Terry Jan Reedy 6b98ce23f6 Issue #27044: stop test_idle from leaking by deleting callbacks. 2016-05-16 22:27:28 -04:00
Terry Jan Reedy af7cf6d2b9 Issue 18910: Edit idle_test/README.txt to add 'requires' usage at module scope.
Uppercase 'GUI', remove 2.7 references and reflow text.
2016-05-15 23:52:56 -04:00
Terry Jan Reedy 33a8fb9920 Issue #23977: Tweak IDLE Delegator and its test. 2016-05-15 22:06:49 -04:00
Terry Jan Reedy 5f4ac9fcf3 Issue #25747: remove undependable and possibly useless test. 2016-05-15 14:19:59 -04:00
Terry Jan Reedy c64d942e8d Issue #20640: Add tests for idlelib.configHelpSourceEdit.
Patch by Saimadhav Heblikar.
2016-05-15 01:30:47 -04:00
Terry Jan Reedy b31a2849da Issue #25507: revert incorrect movement of idleConf import in c548ad75160c.
Augment htest to include all major IOBinding functions.
2016-01-27 11:51:50 -05:00
Terry Jan Reedy dc22031a61 Merge with 3.4 2015-10-30 02:47:33 -04:00
Terry Jan Reedy bbdc065506 Issue #25507: move test-specific imports to test function (idlelib.IOBinding). 2015-10-30 02:47:06 -04:00
Terry Jan Reedy 447169f6da Merge with 3.4 2015-10-13 22:04:07 -04:00
Terry Jan Reedy 93f3542ae4 Issue #24782: Finish converting the Configure Extension dialog into a new
tab in the IDLE Preferences dialog.  Code patch by Mark Roseman.
2015-10-13 22:03:51 -04:00
Terry Jan Reedy 47f9741e5c Merge with 3.4 2015-09-20 19:57:37 -04:00
Terry Jan Reedy 5d46ab1274 Issue #16893: Replace help.txt with idle.html for Idle doc display.
The new idlelib/idle.html is copied from Doc/build/html/idle.html.
It looks better than help.txt and will better document Idle as released.
The tkinter html viewer that works for this file was written by Rose Roseman.
The new code is in idlelib/help.py, a new file for help menu classes.
The now unused EditorWindow.HelpDialog class and helt.txt file are deprecated.
2015-09-20 19:57:13 -04:00
Terry Jan Reedy 52ee2471b3 Merge with 3.4 2015-09-09 02:10:35 -04:00
Terry Jan Reedy 78d915aa3e Issue 24199: Deprecate idlelib.idlever with a warning on import. 2015-09-09 02:10:17 -04:00
Terry Jan Reedy 5c28e9f887 Issue #23672: Allow Idle to edit and run files with astral chars in name.
Patch by Mohd Sanad Zaki Rizvi.
2015-08-06 00:54:07 -04:00
Terry Jan Reedy 19c1a8725c Issue #20792: Expand idle_test.test_pathbowser. Tweak file to not copy twice.
Original patch by Saimadhav Heblikar.
2015-07-20 17:44:59 -04:00
Terry Jan Reedy 0901d84e35 Issue #23672:Merge with 3.4 2015-08-06 00:54:45 -04:00
Terry Jan Reedy fd580cbd17 Merge with 3.4 2015-07-20 17:45:22 -04:00
Terry Jan Reedy b9731f26c3 Merge with 3.4 2015-05-16 14:24:06 -04:00
Terry Jan Reedy 031d0640cd Issue #23964: Update idlelib/idle_test/README.txt. first patch by Al Sweigart. 2015-05-16 14:23:39 -04:00
Terry Jan Reedy 75fb816c78 Issue #23184: idle tests, remove unused names and imports. 2015-05-15 23:55:21 -04:00
Terry Jan Reedy 188c18d48f Merge 3.4 #23184: idle tests, remove unused names and imports. 2015-05-15 23:55:49 -04:00
Berker Peksag dfa4e045a3 Issue #23943: Fix typos. Patch by Piotr Kasprzyk. 2015-04-14 09:35:51 +03:00
Berker Peksag 4882cacab6 Issue #23943: Fix typos. Patch by Piotr Kasprzyk. 2015-04-14 09:30:01 +03:00
Serhiy Storchaka a110eb4331 Issue #23825: Fixed test_idle under -OO. 2015-04-04 09:48:17 +03:00
Serhiy Storchaka 9fa84b202e Issue #23825: Fixed test_idle under -OO. 2015-04-04 09:47:31 +03:00
Serhiy Storchaka 6c86fe2d4b Issue #23583: Added tests for standard IO streams in IDLE. 2015-03-24 19:46:54 +02:00
Serhiy Storchaka 520e00dd92 Issue #23583: Added tests for standard IO streams in IDLE. 2015-03-24 19:49:23 +02:00
Serhiy Storchaka ce40e1a081 Fixed IDLE tests after changing re error messages (issue #22578). 2014-11-10 14:18:03 +02:00
Terry Jan Reedy a9421fb3a3 Issue #3068: Add Idle extension configuration dialog to Options menu.
Original patch by Tal Einat.
2014-10-22 20:15:18 -04:00
Berker Peksag f23530f569 Issue #22186: Fix typos in Lib/.
Patch by Févry Thibault.
2014-10-19 18:04:38 +03:00
Terry Jan Reedy cd567365c9 Issue #22629: Revise idle_test.htest, mostly docstring. Start revision of
htests to add # htest # marker for coveragepy and stop tcl errors.
2014-10-17 01:31:35 -04:00
Tal Einat 9b7f9e6c5a Issue #21765: Add support for non-ascii identifiers to HyperParser 2014-07-16 16:33:36 +03:00
Terry Jan Reedy cfa8950aab Issue #21982: Add minimal unittest for configDialog with 46% coverage.
Fix regression that this test would have caught.
2014-07-14 23:07:32 -04:00
Terry Jan Reedy 5283c4e108 Issue #18592: Method return signature changes made to SearchDialogBase for
test purposes are now reflected in GrepDialog and ReplaceDialog.  Docstrings
are improved. Initial patch by Saimadhav Heblikar
2014-07-13 17:27:26 -04:00
Terry Jan Reedy 3740d589f7 Issue #18592: Make unittest for SearchDialogBase work on all tk versions. 2014-07-11 00:37:14 -04:00
Terry Jan Reedy 223dd8d7d2 #21940: Add unittest for WidgetRedirector. Initial patch by Saimadhav Heblikar. 2014-07-11 00:16:00 -04:00
Terry Jan Reedy 092b3cf671 More idlelib cleanup inspired by pyflakes. 2014-07-01 21:33:31 -04:00
Terry Jan Reedy 8cefd08943 Issue #18592: Refactor 2 SearchDialogBase.create_(option/other)_buttons methods
to remove duplication and return info for tests.  Rewrite corresponding tests.
Test_create_option_buttons was not testing anything because of buggy
comparisons.  Use Python subscripting to get widget options.
2014-06-30 23:52:20 -04:00
Terry Jan Reedy 525168bd74 Issue #18592: Add unittests for SearchDialogBase. Patch by Phil Webster. 2014-06-30 20:00:03 -04:00
Terry Jan Reedy 14fbe72777 Issue #21694: Add unittest for ParenMatch. Patch by Saimadhav Heblikar. 2014-06-17 16:35:20 -04:00
Terry Jan Reedy 10b1c7cc8f Issue #21686: add unittest for idlelib.HyperParser. Original patch by Saimadhav
Heblikar. Correct a minor 3.x bug in HyperParser discovered by testing.
2014-06-16 19:01:01 -04:00
Terry Jan Reedy c6a66ccb06 whitespace 2014-06-08 14:57:24 -04:00
Terry Jan Reedy 38ebdf528e Issue #21682: Replace EditorWindow with mock to eliminate memory leaks.
Patch by Saimadhav Heblikar.
2014-06-07 04:27:50 -04:00
Terry Jan Reedy 4a3f135c8d 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:19 -04:00
Terry Jan Reedy 7be121f2bc whitespace 2014-06-05 03:54:02 -04:00
Terry Jan Reedy 537e2c8632 Issue #18910: Add unittest for textView. Patch by Phil Webster. 2014-06-05 03:38:34 -04:00
Terry Jan Reedy 7936e6f755 Issue #18292: Idle - test AutoExpand. Patch by Saihadhav Heblikar. 2014-06-04 20:50:59 -04:00
Terry Jan Reedy e3fcfc240d Issue #18409: Idle: add unittest for AutoComplete. Patch by Phil Webster. 2014-06-03 20:54:21 -04:00
Zachary Ware 66f2928479 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:29 -05:00
Terry Jan Reedy 078b8a81b1 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:34 -04:00
Terry Jan Reedy 2e8234a597 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:26 -04:00
Terry Jan Reedy 0a4d13e87e Issue #21477: Add htests for Search and Replace dialogs.
Patch by Saimadhav Heblikar.
2014-05-27 03:30:54 -04:00
Terry Jan Reedy a2fc99ecea Issue #21477: Idle htest: modify run; add more tests.
Patch by Saimadhav Heblikar. 2.7 version will follow.
2014-05-25 18:44:05 -04:00
Terry Jan Reedy 1b392ffe67 Issue #21477: Idle htest: merge and modify run and runall; add many tests.
Patch by Saimadhav Heblikar
2014-05-24 18:48:18 -04:00
Terry Jan Reedy ab4fd4448a Issue #21477: idle htests - lower case function names, other cleanups. 2014-05-19 00:12:10 -04:00
Terry Jan Reedy 6936159dcd Issue #18104: revise docstrings, remove obsolete comments. 2014-05-15 20:50:10 -04:00
Terry Jan Reedy 8386fda154 whitespace 2014-05-11 23:35:09 -04:00
Terry Jan Reedy 06313b79d5 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:32 -04:00
Terry Jan Reedy d5d4c4eabe Issue 21284: Idle: make test_formatparagraph pass even when a user changes the
reformat width in the configuration menu.
2014-04-22 01:11:03 -04:00
Terry Jan Reedy 78c330d714 Merge with 3.3 2014-02-27 18:48:13 -05:00
Terry Jan Reedy 9db1ab8250 Issue #20567: Delete class attribute gui widgets in idle tests.
Code patch by Serhiy Storchaka
2014-02-27 18:47:49 -05:00
Ezio Melotti 48eabbeffd #20634: merge with 3.3. 2014-02-15 13:01:41 +02:00
Ezio Melotti f4e998364e #20634: fix typo in IDLE README noticed by Saimadhav Heblikar. 2014-02-15 13:01:08 +02:00
Larry Hastings 581ee3618c Issue #20326: Argument Clinic now uses a simple, unique signature to
annotate text signatures in docstrings, resulting in fewer false
positives.  "self" parameters are also explicitly marked, allowing
inspect.Signature() to authoritatively detect (and skip) said parameters.

Issue #20326: Argument Clinic now generates separate checksums for the
input and output sections of the block, allowing external tools to verify
that the input has not changed (and thus the output is not out-of-date).
2014-01-28 05:00:08 -08:00
Terry Jan Reedy 0c5b5d4571 Merge with 3.3 2014-01-26 21:35:22 -05:00
Terry Jan Reedy 1b759bc49e 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:33 -05:00
Terry Jan Reedy 76964877e3 White space and merge cleanup. 2014-01-26 20:24:35 -05:00
Terry Jan Reedy 0902ce437d Merge with 3.3 2014-01-26 20:17:48 -05:00
Terry Jan Reedy ddc5758885 Merge heads. 2014-01-26 20:16:53 -05:00
Terry Jan Reedy e2d9b39dd4 Issue #20338: Increase allowed tip width slightly and wrap long signagure lines.
Original patch by Serhiy Storchaka.
2014-01-26 20:08:26 -05:00
Terry Jan Reedy a0f1e22068 Issue #20338: Increase allowed tip width slightly and wrap long signagure lines.
Original patch by Serhiy Storchaka.
2014-01-26 19:55:34 -05:00
Larry Hastings 5c66189e88 Issue #20189: Four additional builtin types (PyTypeObject,
PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type)
have been modified to provide introspection information for builtins.
Also: many additional Lib, test suite, and Argument Clinic fixes.
2014-01-24 06:17:25 -08:00
Terry Jan Reedy d5710f8b36 Issue #16638: Include up to 5 docstring header lines (before first blank) in
Idle calltips. This is needed for builtins, such bytes (which is why 5).
Based on patch by Serhiy Storchaka.
2014-01-21 20:45:17 -05:00
Terry Jan Reedy 715476d8e3 Issue #16630: Make Idle calltips work even when __getattr__ raises.
Initial patch by Roger Serwy.
2014-01-21 15:36:51 -05:00
Terry Jan Reedy eed1661b47 Issue #16655: Explain why Idle's test_calltips has 'fragile' tests of builtins. 2014-01-21 03:07:51 -05:00
Terry Jan Reedy 681ede8b0a Issue #20122: Idlelib: Move tests in CallTips.py to test_calltips.py. 2014-01-21 00:26:21 -05:00
Terry Jan Reedy 31e4d325b6 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:16 -04:00
Ezio Melotti b5bc353b88 #18741: fix more typos. Patch by Févry Thibault. 2013-08-17 16:11:40 +03:00
Terry Jan Reedy 29c3fc5d8f 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:13 -04:00
Terry Jan Reedy c2564f9329 Issue #18425: Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan. 2013-08-15 14:32:04 -04:00
Terry Jan Reedy 7c64aad9fb 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:28 -04:00
Terry Jan Reedy 4bd31292c2 Make all idle test case names end with 'Test'. 2013-07-30 01:36:48 -04:00
Terry Jan Reedy 015b4535c5 Update gui section of idle test README. 2013-07-28 16:39:44 -04:00
Terry Jan Reedy a9d16c85d7 Issue #18441: Remove check from test_text.py in 3.3,4 (already done in 2.7). 2013-07-28 16:25:16 -04:00
Terry Jan Reedy e6a17862e7 Issue #18365: convert buildbot errors to skips. 2013-07-13 04:05:42 -04:00
Terry Jan Reedy 4f133e2e98 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:43 -04:00
Terry Jan Reedy 04ff0382b2 Issue #18365: normalize whitespace 2013-07-12 20:16:28 -04:00
Terry Jan Reedy 21784da416 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:23 -04:00