X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/d8fa8df0526de9c0968e0a3568008f58eae45364..0d768e58f42d9aec20637d21ad261f7f9eaacae8:/tests/data/pep_572.py?ds=inline diff --git a/tests/data/pep_572.py b/tests/data/pep_572.py index 2b240be..d41805f 100644 --- a/tests/data/pep_572.py +++ b/tests/data/pep_572.py @@ -2,7 +2,9 @@ (a := a) if (match := pattern.search(data)) is None: pass -[y := f(x), y ** 2, y ** 3] +if match := pattern.search(data): + pass +[y := f(x), y**2, y**3] filtered_data = [y for x in data if (y := f(x)) is None] (y := f(x)) y0 = (y1 := f(x)) @@ -38,3 +40,8 @@ if self._is_special and (ans := self._check_nans(context=context)): foo(b := 2, a=1) foo((b := 2), a=1) foo(c=(b := 2), a=1) + +while x := f(x): + pass +while x := f(x): + pass