diff --git a/test/test_new_parser.py b/test/test_new_parser.py deleted file mode 100644 index 453f65ae..00000000 --- a/test/test_new_parser.py +++ /dev/null @@ -1,13 +0,0 @@ -from jedi._compatibility import u -from jedi.parser.python import parse - - -def test_basic_parsing(): - def compare(string): - """Generates the AST object and then regenerates the code.""" - assert parse(string).get_code() == string - - compare(u('\na #pass\n')) - compare(u('wblabla* 1\t\n')) - compare(u('def x(a, b:3): pass\n')) - compare(u('assert foo\n')) diff --git a/test/test_parser/test_parser.py b/test/test_parser/test_parser.py index 2251c0a8..e96112eb 100644 --- a/test/test_parser/test_parser.py +++ b/test/test_parser/test_parser.py @@ -13,6 +13,16 @@ from jedi.parser_utils import get_statement_of_position, \ clean_scope_docstring, safe_literal_eval +def test_basic_parsing(): + def compare(string): + """Generates the AST object and then regenerates the code.""" + assert parse(string).get_code() == string + + compare('\na #pass\n') + compare('wblabla* 1\t\n') + compare('def x(a, b:3): pass\n') + compare('assert foo\n') + def test_user_statement_on_import(): """github #285""" s = "from datetime import (\n" \