X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/e74117f172e29e8a980e2c9de929ad50d3769150..c26daa4fd50e2db13f38279ce27b51b0ae4479fe:/tests/function.py diff --git a/tests/function.py b/tests/function.py index 85f7d40..858b042 100644 --- a/tests/function.py +++ b/tests/function.py @@ -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: @@ -103,6 +108,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(