Commit 6b075801 authored by Stefan Behnel's avatar Stefan Behnel

extend tests

--HG--
extra : transplant_source : %E3%8F%A6c%F5F%02%E8%DE%A2-%EF%1F%8B%B1%F9yC%C4%F5
parent 75079c92
...@@ -37,6 +37,9 @@ def test_func_signature(a): ...@@ -37,6 +37,9 @@ def test_func_signature(a):
""" """
>>> test_func_signature(Foo()) >>> test_func_signature(Foo())
<Foo> <Foo>
>>> test_func_signature(123)
Traceback (most recent call last):
TypeError: Cannot convert int to closure_inlining.Foo
""" """
def inner(Foo a): def inner(Foo a):
...@@ -49,6 +52,9 @@ def test_func_signature2(a, b): ...@@ -49,6 +52,9 @@ def test_func_signature2(a, b):
""" """
>>> test_func_signature2(Foo(), 123) >>> test_func_signature2(Foo(), 123)
(<Foo>, 123) (<Foo>, 123)
>>> test_func_signature2(321, 123)
Traceback (most recent call last):
TypeError: Cannot convert int to closure_inlining.Foo
""" """
def inner(Foo a, b): def inner(Foo a, b):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment