From 3bafb17474cb55fd340592ce6d145f41dbf994b6 Mon Sep 17 00:00:00 2001 From: Stefan Behnel <stefan_ml@behnel.de> Date: Sat, 5 Aug 2017 07:55:09 +0200 Subject: [PATCH] delete outdated syntax tests --- tests/errors/pep492_badsyntax_async10.pyx | 28 ----------------------- tests/errors/pep492_badsyntax_async3.pyx | 9 -------- 2 files changed, 37 deletions(-) delete mode 100644 tests/errors/pep492_badsyntax_async10.pyx delete mode 100644 tests/errors/pep492_badsyntax_async3.pyx diff --git a/tests/errors/pep492_badsyntax_async10.pyx b/tests/errors/pep492_badsyntax_async10.pyx deleted file mode 100644 index dc9cab655..000000000 --- a/tests/errors/pep492_badsyntax_async10.pyx +++ /dev/null @@ -1,28 +0,0 @@ -# mode: error -# tag: pep492, async - -async def genexpr(it): - return (await x for x in it) - - -async def listcomp(it): - return [await x for x in it] - - -async def setcomp(it): - return {await x for x in it} - - -async def dictcomp(it): - return {await x:x+1 for x in it} - - -# NOTE: CPython doesn't allow comprehensions either - - -_ERRORS = """ -5:12: 'await' not allowed in generators (use 'yield') -5:12: 'await' not supported here -# FIXME: remove when implementing async comprehensions -5:12: 'yield' not supported here -""" diff --git a/tests/errors/pep492_badsyntax_async3.pyx b/tests/errors/pep492_badsyntax_async3.pyx deleted file mode 100644 index 7113e3fa1..000000000 --- a/tests/errors/pep492_badsyntax_async3.pyx +++ /dev/null @@ -1,9 +0,0 @@ -# mode: error -# tag: pep492, async - -async def foo(): - [i async for i in els] - -_ERRORS = """ -5:7: Expected ']', found 'async' -""" -- 2.30.9