From ab71c943ee77e7423200a87478765505a31c82ea Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 7 May 2017 16:29:48 +0200 Subject: [PATCH] Move a parser test to the correct place. --- test/test_new_parser.py | 13 ------------- test/test_parser/test_parser.py | 10 ++++++++++ 2 files changed, 10 insertions(+), 13 deletions(-) delete mode 100644 test/test_new_parser.py 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" \