diff options
author | Martin Panter <vadmium+py@gmail.com> | 2015-11-24 00:20:00 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2015-11-24 00:20:00 (GMT) |
commit | 745f6b3a5db0a9b1cdae7b20c7be2c3c8a3240a7 (patch) | |
tree | 24e39a429b7d765fcd71b5099783e4e708eb48e7 /Lib/test/test_rlcompleter.py | |
parent | 450c9881849d5489ff21d77648f2231d0176c0a5 (diff) | |
download | cpython-745f6b3a5db0a9b1cdae7b20c7be2c3c8a3240a7.zip cpython-745f6b3a5db0a9b1cdae7b20c7be2c3c8a3240a7.tar.gz cpython-745f6b3a5db0a9b1cdae7b20c7be2c3c8a3240a7.tar.bz2 |
Issue #25663: Update rlcompleter test for new 3.6 behaviour
Diffstat (limited to 'Lib/test/test_rlcompleter.py')
-rw-r--r-- | Lib/test/test_rlcompleter.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_rlcompleter.py b/Lib/test/test_rlcompleter.py index 34a5eff..d9e4de6 100644 --- a/Lib/test/test_rlcompleter.py +++ b/Lib/test/test_rlcompleter.py @@ -124,9 +124,10 @@ class TestRlcompleter(unittest.TestCase): completer = rlcompleter.Completer(namespace) self.assertEqual(completer.complete('False', 0), 'False') self.assertIsNone(completer.complete('False', 1)) # No duplicates - self.assertEqual(completer.complete('assert', 0), 'assert') + # Space or colon added due to being a reserved keyword + self.assertEqual(completer.complete('assert', 0), 'assert ') self.assertIsNone(completer.complete('assert', 1)) - self.assertEqual(completer.complete('try', 0), 'try') + self.assertEqual(completer.complete('try', 0), 'try:') self.assertIsNone(completer.complete('try', 1)) # No opening bracket "(" because we overrode the built-in class self.assertEqual(completer.complete('memoryview', 0), 'memoryview') |