We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 325e74b commit e04d5abCopy full SHA for e04d5ab
bpython/test/test_repl.py
@@ -151,6 +151,19 @@ def setInputLine(self, line):
151
"""Set current input line of the test REPL."""
152
self.repl.input_line = line
153
154
+ def test_kw_arg_position(self):
155
+ self.setInputLine("spam(a=0")
156
+ self.assertTrue(self.repl.get_args())
157
+ self.assertEqual(self.repl.argspec[3], "a")
158
+
159
+ self.setInputLine("spam(1, b=1")
160
161
+ self.assertEqual(self.repl.argspec[3], "b")
162
163
+ self.setInputLine("spam(1, c=2")
164
165
+ self.assertEqual(self.repl.argspec[3], "c")
166
167
def test_lambda_position(self):
168
self.setInputLine("spam(lambda a, b: 1, ")
169
self.assertTrue(self.repl.get_args())
0 commit comments