X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/6ba615092e0b323072058f0a90bb7ab301957b7f..7bd6f3cb2ff11d385dbe433e2b03e9f7c94be33e:/tests/function.py?ds=sidebyside diff --git a/tests/function.py b/tests/function.py index 29de408..888ef9f 100644 --- a/tests/function.py +++ b/tests/function.py @@ -14,8 +14,9 @@ def func_no_args(): for i in range(10): print(i) continue + exec("new-style exec", {}, {}) return None -async def coroutine(arg): +async def coroutine(arg, exec=False): "Single-line docstring. Multiline is harder to reformat." async with some_connection() as conn: await conn.do_what_i_mean('SELECT bobby, tables FROM xkcd', timeout=2) @@ -37,7 +38,7 @@ def example(session): models.Customer.account_id == account_id, models.Customer.email == email_address, ).order_by( - models.Customer.id.asc(), + models.Customer.id.asc() ).all() def long_lines(): if True: @@ -93,10 +94,11 @@ def func_no_args(): print(i) continue + exec("new-style exec", {}, {}) return None -async def coroutine(arg): +async def coroutine(arg, exec=False): "Single-line docstring. Multiline is harder to reformat." async with some_connection() as conn: await conn.do_what_i_mean('SELECT bobby, tables FROM xkcd', timeout=2) @@ -129,7 +131,7 @@ def example(session): result = session.query(models.Customer.id).filter( models.Customer.account_id == account_id, models.Customer.email == email_address ).order_by( - models.Customer.id.asc(), + models.Customer.id.asc() ).all()