[issue18409] Idle: test AutoComplete.py
Roundup Robot added the comment: New changeset 4f1abf87df12 by Terry Jan Reedy in branch '2.7': Issue #18409: Idle: add unittest for AutoComplete. Patch by Phil Webster. http://hg.python.org/cpython/rev/4f1abf87df12 New changeset bf8710cf896b by Terry Jan Reedy in branch '3.4': Issue #18409: Idle: add unittest for AutoComplete. Patch by Phil Webster. http://hg.python.org/cpython/rev/bf8710cf896b -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18409 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18409] Idle: test AutoComplete.py
Terry J. Reedy added the comment: The coverage of Phil's patch is about 60%. I decided to push it with slight modification so he is properly credited with what he did. Changes: Move mock AutoCompleteWindow to test file; too special. Move ac_func to mock_idle for use in other tests; well done! Redo Event mock. Assign needed attributes when create. Make changes needed because of above two changes. Add macosxSupport call now needed to run without raising. Delete root when done. Add abbreviation for self.autocomplete.open_completions, etc. Improve the logic of a couple of subtests. Any blank class could be used to mock event, but putting it in mock_tk allows for a docstring and does the update trick just once. Saimadhav, open a new issue to work more on this test. -- nosy: +sahutd resolution: - fixed status: open - closed Added file: http://bugs.python.org/file35475/test_autocomplete-18409-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18409 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18409] Idle: test AutoComplete.py
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: needs patch - patch review title: IDLE Improvements: Unit test for AutoComplete.py - Idle: test AutoComplete.py versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18409 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com