Issue #19198: IDLE: tab after initial whitespace should tab, not autocomplete.

Fixes problem with writing docstrings at lease twice indented.
This commit is contained in:
Terry Jan Reedy 2016-07-24 23:01:28 -04:00
parent 996d72bccf
commit c665dfd73e
3 changed files with 12 additions and 7 deletions

View file

@ -97,6 +97,11 @@ class AutoCompleteTest(unittest.TestCase):
self.assertIsNone(autocomplete.autocomplete_event(ev))
del ev.mc_state
# Test that tab after whitespace is ignored.
self.text.insert('1.0', ' """Docstring.\n ')
self.assertIsNone(autocomplete.autocomplete_event(ev))
self.text.delete('1.0', 'end')
# If autocomplete window is open, complete() method is called
self.text.insert('1.0', 're.')
# This must call autocomplete._make_autocomplete_window()