summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-20 16:32:12 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-20 16:32:12 +0200
commit9c9dbac89d4859eca61c81283aca75e34782891c (patch)
tree1b2b04c47ca0e5eea4873bf824ec06eb9f45bd1f
parentbbb205db08851c4c91bc4356795455a6b7ff1cee (diff)
downloadastroid-git-add-dateutil-to-requirements.tar.gz
Typed AST is an astroid dependencyadd-dateutil-to-requirements
-rw-r--r--requirements_test_min.txt1
-rw-r--r--tests/unittest_nodes.py16
2 files changed, 0 insertions, 17 deletions
diff --git a/requirements_test_min.txt b/requirements_test_min.txt
index ca8bce93..e68c06d6 100644
--- a/requirements_test_min.txt
+++ b/requirements_test_min.txt
@@ -6,4 +6,3 @@ nose
numpy
attrs
python-dateutil
-typed_ast>=1.4.0,<1.5
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: #@