Get rid of the xfails

This commit is contained in:
Dave Halter
2020-07-24 15:43:41 +02:00
parent 62b4589293
commit 2962517be0
2 changed files with 13 additions and 14 deletions

View File

@@ -75,11 +75,15 @@ def test_await_expr(works_in_py):
""") """)
@pytest.mark.xfail(reason="acting like python 3.7") @pytest.mark.parametrize(
def test_async_var(): 'code', [
_parse("""async = 1""", "3.6") "async = 1",
_parse("""await = 1""", "3.6") "await = 1",
_parse("""def async(): pass""", "3.6") "def async(): pass",
]
)
def test_async_var(works_not_in_py, code):
works_not_in_py.parse(code)
def test_async_for(works_in_py): def test_async_for(works_in_py):

View File

@@ -229,9 +229,6 @@ def test_endmarker_end_pos():
check('a\\') check('a\\')
xfail_py2 = dict(marks=[pytest.mark.xfail(sys.version_info[0] == 2, reason='Python 2')])
@pytest.mark.parametrize( @pytest.mark.parametrize(
('code', 'types'), [ ('code', 'types'), [
# Indentation # Indentation
@@ -243,12 +240,10 @@ xfail_py2 = dict(marks=[pytest.mark.xfail(sys.version_info[0] == 2, reason='Pyth
# Name stuff # Name stuff
('1foo1', [NUMBER, NAME]), ('1foo1', [NUMBER, NAME]),
pytest.param( ('மெல்லினம்', [NAME]),
'மெல்லினம்', [NAME], ('²', [ERRORTOKEN]),
**xfail_py2), ('ä²ö', [NAME, ERRORTOKEN, NAME]),
pytest.param('²', [ERRORTOKEN], **xfail_py2), ('ää²¹öö', [NAME, ERRORTOKEN, NAME]),
pytest.param('ä²ö', [NAME, ERRORTOKEN, NAME], **xfail_py2),
pytest.param('ää²¹öö', [NAME, ERRORTOKEN, NAME], **xfail_py2),
(' \x00a', [INDENT, ERRORTOKEN, NAME, DEDENT]), (' \x00a', [INDENT, ERRORTOKEN, NAME, DEDENT]),
(dedent('''\ (dedent('''\
class BaseCache: class BaseCache: