diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-03-31 09:57:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-31 09:57:25 -0700 |
| commit | 3215b85568af98987c8d54af4e691637a74e91bc (patch) | |
| tree | 8d9013d646deb1fbde1c6f5eef0c85a78958b851 /tests/basics | |
| parent | d65ea992bf252da993480c590e005be5fd55c2e0 (diff) | |
| parent | 853f7ac4d001d2098a4f25305e235f5d0e7c26c8 (diff) | |
Merge pull request #728 from jepler/double-splat-crash-circuitpython
py/bc: Turn assertion error into exception
Diffstat (limited to 'tests/basics')
| -rw-r--r-- | tests/basics/fun_calldblstar.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basics/fun_calldblstar.py b/tests/basics/fun_calldblstar.py index aae9828cf..15038b2f5 100644 --- a/tests/basics/fun_calldblstar.py +++ b/tests/basics/fun_calldblstar.py @@ -15,3 +15,10 @@ class A: a = A() a.f(1, **{'b':2}) a.f(1, **{'b':val for val in range(1)}) + +try: + f(1, **{len: 1}) +except TypeError: + print(True) +else: + print(False) |
