aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/idlelib/idle_test/test_autocomplete.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/idle_test/test_autocomplete.py')
-rw-r--r--Lib/idlelib/idle_test/test_autocomplete.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/idlelib/idle_test/test_autocomplete.py b/Lib/idlelib/idle_test/test_autocomplete.py
index 1841495fcf1..9c113bd893f 100644
--- a/Lib/idlelib/idle_test/test_autocomplete.py
+++ b/Lib/idlelib/idle_test/test_autocomplete.py
@@ -240,8 +240,11 @@ class AutoCompleteTest(unittest.TestCase):
with patch.dict('__main__.__dict__', {'__all__': ['a', 'b']}):
s, b = acp.fetch_completions('', ac.ATTRS)
self.assertEqual(s, ['a', 'b'])
- self.assertIn('__name__', b) # From __main__.__dict__
- self.assertIn('sum', b) # From __main__.__builtins__.__dict__
+ self.assertIn('__name__', b) # From __main__.__dict__.
+ self.assertIn('sum', b) # From __main__.__builtins__.__dict__.
+ self.assertIn('nonlocal', b) # From keyword.kwlist.
+ pos = b.index('False') # Test False not included twice.
+ self.assertNotEqual(b[pos+1], 'False')
# Test attributes with name entity.
mock = Mock()