Refactor code to allow only keyword-only arguments to the main function.

This commit is contained in:
Dave Halter
2017-05-18 17:16:42 -04:00
parent 02278305f7
commit c1010008af
2 changed files with 21 additions and 3 deletions

View File

@@ -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)