From 891bfdaa04ce4d324b011a24d1c57e61aa8f0505 Mon Sep 17 00:00:00 2001 From: Batuhan Taskaya Date: Thu, 4 Jun 2020 22:09:04 +0300 Subject: [PATCH] Test only python3+ --- test/test_python_errors.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/test_python_errors.py b/test/test_python_errors.py index da10341..0b45f11 100644 --- a/test/test_python_errors.py +++ b/test/test_python_errors.py @@ -413,11 +413,4 @@ def test_unparenthesized_genexp(source, no_errors): ] ) def test_starred_expr(source, no_errors): - assert ( - any( - "starred assignment target must be in a list or tuple" - in error.message - for error in _get_error_list(source) - ) - ^ no_errors - ) + assert bool(_get_error_list(source, version="3")) ^ no_errors