mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-06 21:04:29 +08:00
Refactor code to allow only keyword-only arguments to the main function.
This commit is contained in:
@@ -178,3 +178,8 @@ def test_open_string_literal(code):
|
||||
module = parse(code)
|
||||
assert module.get_code() == code
|
||||
assert module.end_pos == end_pos == module.children[1].end_pos
|
||||
|
||||
|
||||
def test_too_many_params():
|
||||
with pytest.raises(TypeError):
|
||||
parse('asdf', hello=3)
|
||||
|
||||
Reference in New Issue
Block a user