From 5e65bd2aaf469bc334712999c60d8e199d5590f4 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 19 Jul 2017 18:15:23 +0200 Subject: [PATCH] Remove xfail tests that didn't make any sense. --- test/test_pgen2.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/test/test_pgen2.py b/test/test_pgen2.py index b967fd6..3669a9e 100644 --- a/test/test_pgen2.py +++ b/test/test_pgen2.py @@ -99,20 +99,6 @@ def test_await_expr(works_ge_py35): """) -@pytest.mark.skipif('sys.version_info[:2] < (3, 5)') -@pytest.mark.xfail(reason="acting like python 3.7") -def test_await_expr_invalid(): - _invalid_syntax("await x", version="3.5") - _invalid_syntax("""def foo(): - await x""", version="3.5") - - _invalid_syntax("""def foo(): - def foo(): pass - async def foo(): pass - await x - """, version="3.5") - - @pytest.mark.skipif('sys.version_info[:2] < (3, 5)') @pytest.mark.xfail(reason="acting like python 3.7") def test_async_var(): @@ -125,13 +111,6 @@ def test_async_for(works_ge_py35): works_ge_py35.parse("async def foo():\n async for a in b: pass") -@pytest.mark.skipif('sys.version_info[:2] < (3, 5)') -@pytest.mark.xfail(reason="acting like python 3.7") -def test_async_for_invalid(): - _invalid_syntax("""def foo(): - async for a in b: pass""", version="3.5") - - def test_async_with(works_ge_py35): works_ge_py35.parse("async def foo():\n async with a: pass")