X Tutup
Skip to content

Commit d5ae910

Browse files
committed
A variant of #127.
For {x:range( it also fails to display the right thing.
1 parent 4667d0c commit d5ae910

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bpython/test/test_repl.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ def test_name_in_assignment_without_spaces(self):
191191
self.assertTrue(self.repl.get_args())
192192
self.assertEqual(self.repl.current_func.__name__, "range")
193193

194+
self.setInputLine("{x:range(")
195+
self.assertTrue(self.repl.get_args())
196+
self.assertEqual(self.repl.current_func.__name__, "range")
197+
194198
def test_nonexistent_name(self):
195199
self.setInputLine("spamspamspam(")
196200
self.assertFalse(self.repl.get_args())

0 commit comments

Comments
 (0)
X Tutup