diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-07-24 23:01:28 -0400 |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-07-24 23:01:28 -0400 |
commit | f59bee4046bf7bd0b7167312e002afa5fb589f80 (patch) | |
tree | d0a769491d3cb035a10eec5e1eae332946c53434 /Lib/idlelib/idle_test/test_autocomplete.py | |
parent | 232355ea845c6fc7b9e7228bf62909dc83f3dbdf (diff) | |
download | cpython-f59bee4046bf7bd0b7167312e002afa5fb589f80.tar.gz |
Issue #19198: IDLE: tab after initial whitespace should tab, not autocomplete.
Fixes problem with writing docstrings at lease twice indented.
Diffstat (limited to 'Lib/idlelib/idle_test/test_autocomplete.py')
-rw-r--r-- | Lib/idlelib/idle_test/test_autocomplete.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_autocomplete.py b/Lib/idlelib/idle_test/test_autocomplete.py index a14c6db349..97bfab5a56 100644 --- a/Lib/idlelib/idle_test/test_autocomplete.py +++ b/Lib/idlelib/idle_test/test_autocomplete.py @@ -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() |