You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IDLE autocomplete: refactor and polish code and tests #80600
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.
Increase coverage. Multiple conditionals are only triggered 1 way.
Activity
terryjreedy commentedon Mar 24, 2019
Followup to bpo-30348.
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.terryjreedy commentedon Aug 4, 2019
New changeset 1213123 by Terry Jan Reedy in branch 'master':
bpo-36419: IDLE - Refactor autocompete and improve testing. (bpo-15121)
1213123
miss-islington commentedon Aug 5, 2019
New changeset 5349f8c by Miss Islington (bot) in branch '3.8':
bpo-36419: IDLE - Refactor autocompete and improve testing. (GH-15121)
5349f8c
miss-islington commentedon Aug 5, 2019
New changeset 4969192 by Miss Islington (bot) in branch '3.7':
bpo-36419: IDLE - Refactor autocompete and improve testing. (GH-15121)
4969192
terryjreedy commentedon Aug 5, 2019
All three goals done. Most or all of the 7% not covered is the part of the file I did not touch.