diff options
author | Damien George <damien.p.george@gmail.com> | 2015-04-05 00:03:43 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-04-05 00:03:43 +0100 |
commit | e5c4362a98cf31d909476d9f06825228f05a2c82 (patch) | |
tree | d6642e27a50fad6660a5705e900df86c6c25c1d7 /tests/basics/fun_error.py | |
parent | 97abe22963af5b62656cef5a46c195215f75f7d2 (diff) | |
download | micropython-e5c4362a98cf31d909476d9f06825228f05a2c82.tar.gz micropython-e5c4362a98cf31d909476d9f06825228f05a2c82.zip |
tests: Add some more tests to improve code coverage of corner cases.
Diffstat (limited to 'tests/basics/fun_error.py')
-rw-r--r-- | tests/basics/fun_error.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/fun_error.py b/tests/basics/fun_error.py index 02af7b1bba..305b249111 100644 --- a/tests/basics/fun_error.py +++ b/tests/basics/fun_error.py @@ -29,3 +29,6 @@ test_exc("[].sort(noexist=1)", TypeError) # function with keyword args not given a specific keyword arg test_exc("enumerate()", TypeError) + +# kw given for positional, but a different positional is missing +test_exc("def f(x, y): pass\nf(x=1)", TypeError) |