aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/parso/py2/tests/test_file_python_errors.py
diff options
context:
space:
mode:
authormonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
committermonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
commit06e5c21a835c0e923506c4ff27929f34e00761c2 (patch)
tree75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /contrib/python/parso/py2/tests/test_file_python_errors.py
parent03f024c4412e3aa613bb543cf1660176320ba8f4 (diff)
downloadydb-06e5c21a835c0e923506c4ff27929f34e00761c2.tar.gz
fix ya.make
Diffstat (limited to 'contrib/python/parso/py2/tests/test_file_python_errors.py')
-rw-r--r--contrib/python/parso/py2/tests/test_file_python_errors.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/contrib/python/parso/py2/tests/test_file_python_errors.py b/contrib/python/parso/py2/tests/test_file_python_errors.py
deleted file mode 100644
index 7083dfeb467..00000000000
--- a/contrib/python/parso/py2/tests/test_file_python_errors.py
+++ /dev/null
@@ -1,23 +0,0 @@
-import os
-
-import parso
-
-
-def get_python_files(path):
- for dir_path, dir_names, file_names in os.walk(path):
- for file_name in file_names:
- if file_name.endswith('.py'):
- yield os.path.join(dir_path, file_name)
-
-
-def test_on_itself(each_version):
- """
- There are obviously no syntax erros in the Python code of parso. However
- parso should output the same for all versions.
- """
- grammar = parso.load_grammar(version=each_version)
- path = os.path.dirname(os.path.dirname(__file__)) + '/parso'
- for file in get_python_files(path):
- tree = grammar.parse(path=file)
- errors = list(grammar.iter_errors(tree))
- assert not errors