mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
update skip reason
This commit is contained in:
parent
560ebb5b1d
commit
698193c5e2
1 changed files with 21 additions and 21 deletions
|
@ -136,7 +136,7 @@ def test_binop_minus():
|
|||
def test_binop_times():
|
||||
yield check_ast, '42 * 65'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_binop_matmult():
|
||||
yield check_ast, 'x @ y', False
|
||||
|
||||
|
@ -500,47 +500,47 @@ def test_dict_two_comma():
|
|||
def test_dict_three():
|
||||
yield check_ast, '{42: 65, 6: 28, 1: 2}'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_dict_from_dict_two_xy():
|
||||
yield check_ast, '{"x": 1, **{"y": 2}}'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_dict_from_dict_two_x_first():
|
||||
yield check_ast, '{"x": 1, **{"x": 2}}'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_dict_from_dict_two_x_second():
|
||||
yield check_ast, '{**{"x": 2}, "x": 1}'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_unpack_range_tuple():
|
||||
yield check_stmts, '*range(4),'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_unpack_range_tuple_4():
|
||||
yield check_stmts, '*range(4), 4'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_unpack_range_tuple_parens():
|
||||
yield check_ast, '(*range(4),)'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_unpack_range_tuple_parens_4():
|
||||
yield check_ast, '(*range(4), 4)'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_unpack_range_list():
|
||||
yield check_ast, '[*range(4)]'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_unpack_range_list_4():
|
||||
yield check_ast, '[*range(4), 4]'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_unpack_range_set():
|
||||
yield check_ast, '{*range(4)}'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_unpack_range_set_4():
|
||||
yield check_ast, '{*range(4), 4}'
|
||||
|
||||
|
@ -814,15 +814,15 @@ def test_call_int_base_dict():
|
|||
def test_call_dict_kwargs():
|
||||
yield check_ast, 'dict(**{"base": 8})'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_call_list_many_star_args():
|
||||
yield check_ast, 'min(*[1, 2], 3, *[4, 5])'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_call_list_many_starstar_args():
|
||||
yield check_ast, 'dict(**{"a": 2}, v=3, **{"c": 5})'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_call_list_many_star_and_starstar_args():
|
||||
yield check_ast, 'x(*[("a", 2)], *[("v", 3)], **{"c": 5})', False
|
||||
|
||||
|
@ -938,7 +938,7 @@ def test_sub_eq():
|
|||
def test_times_eq():
|
||||
yield check_stmts, 'x = 42; x *= 2'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_matmult_eq():
|
||||
yield check_stmts, 'x @= y', False
|
||||
|
||||
|
@ -1224,7 +1224,7 @@ def test_for_zip_attr():
|
|||
def test_for_else():
|
||||
yield check_stmts, 'for x in range(6):\n pass\nelse: pass'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_async_for():
|
||||
yield check_stmts, "async def f():\n async for x in y:\n pass\n", False
|
||||
|
||||
|
@ -1246,7 +1246,7 @@ def test_with_x_as_y_a_as_b():
|
|||
def test_with_in_func():
|
||||
yield check_stmts, "def f():\n with x:\n pass\n"
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_async_with():
|
||||
yield check_stmts, "async def f():\n async with x as y:\n pass\n", False
|
||||
|
||||
|
@ -1499,15 +1499,15 @@ def test_function_blank_line():
|
|||
yield check_stmts, code, False
|
||||
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_async_func():
|
||||
yield check_stmts, 'async def f():\n pass\n'
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_async_decorator():
|
||||
yield check_stmts, '@g\nasync def f():\n pass', False
|
||||
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.4 only test')
|
||||
@pytest.mark.skipif(VER_MAJOR_MINOR < VER_3_5, reason='Py3.5 only test')
|
||||
def test_async_await():
|
||||
yield check_stmts, "async def f():\n await fut\n", False
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue