X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/e36b8c71bb78f70735b8b4f239b0f574a6e0f277..39a5fe7a55d2011d8209888b31fd6a4ea75efb71:/tests/expression.py?ds=sidebyside diff --git a/tests/expression.py b/tests/expression.py index 3cd0c61..b03abfa 100644 --- a/tests/expression.py +++ b/tests/expression.py @@ -144,7 +144,12 @@ def gen(): async def f(): await some.complicated[0].call(with_args=(True or (1 is not 1))) - +for x, in (1,), (2,), (3,): ... +for y in (): ... +for z in (i for i in (1, 2, 3)): ... +for i in (call()): ... +for j in (1 + (2 + 3)): ... +while(this and that): ... if ( threading.current_thread() != threading.main_thread() and threading.current_thread() != threading.main_thread() or @@ -356,6 +361,18 @@ async def f(): await some.complicated[0].call(with_args=(True or (1 is not 1))) +for (x,) in (1,), (2,), (3,): + ... +for y in (): + ... +for z in (i for i in (1, 2, 3)): + ... +for i in call(): + ... +for j in 1 + (2 + 3): + ... +while this and that: + ... if ( threading.current_thread() != threading.main_thread() and threading.current_thread() != threading.main_thread()