X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/e74117f172e29e8a980e2c9de929ad50d3769150..22ce1e1fc389869696f8cfc5627b8b1b322308b4:/tests/function.py?ds=sidebyside diff --git a/tests/function.py b/tests/function.py index 85f7d40..abe2200 100644 --- a/tests/function.py +++ b/tests/function.py @@ -6,7 +6,7 @@ from third_party import X, Y, Z from library import some_connection, \ some_decorator - +f'trigger 3.6 mode' def func_no_args(): a; b; c if True: raise RuntimeError @@ -27,6 +27,11 @@ many_args=[1,2,3] ) def function_signature_stress_test(number:int,no_annotation=None,text:str="default",* ,debug:bool=False,**kwargs) -> str: return text[number:-1] +def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r''): + offset = attr.ib(default=attr.Factory( lambda: _r.uniform(10000, 200000))) + assert task._cancel_stack[:len(old_stack)] == old_stack +def spaces2(result= _core.Value(None)): + ... def long_lines(): if True: @@ -66,6 +71,8 @@ from third_party import X, Y, Z from library import some_connection, some_decorator +f'trigger 3.6 mode' + def func_no_args(): a @@ -103,6 +110,15 @@ def function_signature_stress_test( return text[number:-1] +def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r''): + offset = attr.ib(default=attr.Factory(lambda: _r.uniform(10000, 200000))) + assert task._cancel_stack[:len(old_stack)] == old_stack + + +def spaces2(result=_core.Value(None)): + ... + + def long_lines(): if True: typedargslist.extend(