diff options
| author | Jeff Epler <jepler@gmail.com> | 2018-03-30 17:10:45 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2018-03-31 08:44:29 -0500 |
| commit | 853f7ac4d001d2098a4f25305e235f5d0e7c26c8 (patch) | |
| tree | 458d7f4e6f047f84ef027e38b384e0d5afe49bb1 /tests | |
| parent | 1eba5804434a8acc182c23aadf5b5a5dcbe901fa (diff) | |
py/bc: Turn assertion error into exception
Diffstat (limited to 'tests')
| -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) |
