New submission from Terry J. Reedy <tjre...@udel.edu>:
Followup to #30348. 1. Merge try_open_completions_event and _open_completions_later. The latter is only used in the former. Adjust tests to match. 2. The following in test_open_completions tests >>> "something<tab> self.text.insert('1.0', '"t') self.assertTrue(self.autocomplete.open_completions(False, True, True)) This passes with unittest (py -m test.test_idle) but fails with regrtest (py -m test -ugui test_idle), with "None is not true". There are multiple 'return None's in open_completions. Determine which with debug prints and try to pass with regrtest. Success does not depend on the inserted text matching any file in the current working directory. 3. Increase coverage. Multiple conditionals are only triggered 1 way. ---------- assignee: terry.reedy components: IDLE messages: 338766 nosy: terry.reedy priority: normal severity: normal stage: test needed status: open title: IDLE autocomplete: refactor and polish code and tests type: enhancement versions: Python 3.7, Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36419> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com