summaryrefslogtreecommitdiff
path: root/tests/unittest_nodes.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittest_nodes.py')
-rw-r--r--tests/unittest_nodes.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/unittest_nodes.py b/tests/unittest_nodes.py
index 4ce73be9..3f5a7159 100644
--- a/tests/unittest_nodes.py
+++ b/tests/unittest_nodes.py
@@ -45,13 +45,6 @@ from . import resources
abuilder = builder.AstroidBuilder()
BUILTINS = builtins.__name__
PY38 = sys.version_info[:2] >= (3, 8)
-try:
- import typed_ast # pylint: disable=unused-import
-
- HAS_TYPED_AST = True
-except ImportError:
- # typed_ast merged in `ast` in Python 3.8
- HAS_TYPED_AST = PY38
class AsStringTest(resources.SysPathSetup, unittest.TestCase):
@@ -958,7 +951,6 @@ def test_unknown():
assert isinstance(nodes.Unknown().qname(), str)
-@pytest.mark.skipif(not HAS_TYPED_AST, reason="requires typed_ast")
def test_type_comments_with():
module = builder.parse(
"""
@@ -975,7 +967,6 @@ def test_type_comments_with():
assert ignored_node.type_annotation is None
-@pytest.mark.skipif(not HAS_TYPED_AST, reason="requires typed_ast")
def test_type_comments_for():
module = builder.parse(
"""
@@ -993,7 +984,6 @@ def test_type_comments_for():
assert ignored_node.type_annotation is None
-@pytest.mark.skipif(not HAS_TYPED_AST, reason="requires typed_ast")
def test_type_coments_assign():
module = builder.parse(
"""
@@ -1009,7 +999,6 @@ def test_type_coments_assign():
assert ignored_node.type_annotation is None
-@pytest.mark.skipif(not HAS_TYPED_AST, reason="requires typed_ast")
def test_type_comments_invalid_expression():
module = builder.parse(
"""
@@ -1022,7 +1011,6 @@ def test_type_comments_invalid_expression():
assert node.type_annotation is None
-@pytest.mark.skipif(not HAS_TYPED_AST, reason="requires typed_ast")
def test_type_comments_invalid_function_comments():
module = builder.parse(
"""
@@ -1042,7 +1030,6 @@ def test_type_comments_invalid_function_comments():
assert node.type_comment_args is None
-@pytest.mark.skipif(not HAS_TYPED_AST, reason="requires typed_ast")
def test_type_comments_function():
module = builder.parse(
"""
@@ -1073,7 +1060,6 @@ def test_type_comments_function():
assert node.type_comment_returns.as_string() == expected_returns_string
-@pytest.mark.skipif(not HAS_TYPED_AST, reason="requires typed_ast")
def test_type_comments_arguments():
module = builder.parse(
"""
@@ -1157,7 +1143,6 @@ def test_type_comments_posonly_arguments():
assert actual_arg.as_string() == expected_arg
-@pytest.mark.skipif(not HAS_TYPED_AST, reason="requires typed_ast")
def test_correct_function_type_comment_parent():
data = """
def f(a):
@@ -1292,7 +1277,6 @@ def test_parse_fstring_debug_mode():
assert node.as_string() == "f'3={3!r}'"
-@pytest.mark.skipif(not HAS_TYPED_AST, reason="requires typed_ast")
def test_parse_type_comments_with_proper_parent():
code = """
class D: #@