summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_rlcompleter.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-11-24 00:20:00 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2015-11-24 00:20:00 (GMT)
commit745f6b3a5db0a9b1cdae7b20c7be2c3c8a3240a7 (patch)
tree24e39a429b7d765fcd71b5099783e4e708eb48e7 /Lib/test/test_rlcompleter.py
parent450c9881849d5489ff21d77648f2231d0176c0a5 (diff)
downloadcpython-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.py5
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')