From 05ce1c823704179064f9a1fa6225cfbef705b0f6 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 23 Aug 2019 00:26:15 +0200 Subject: [PATCH] Remove a test that tested a removed function --- test/test_parso_integration/test_parser_utils.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/test_parso_integration/test_parser_utils.py b/test/test_parso_integration/test_parser_utils.py index c085710c..a411e6e3 100644 --- a/test/test_parso_integration/test_parser_utils.py +++ b/test/test_parso_integration/test_parser_utils.py @@ -45,18 +45,6 @@ class TestCallAndName: assert parser_utils.safe_literal_eval(literal.value) == 'hello' -def test_user_statement_on_import(): - """github #285""" - s = "from datetime import (\n" \ - " time)" - - for pos in [(2, 1), (2, 4)]: - p = parse(s) - stmt = parser_utils.get_statement_of_position(p, pos) - assert isinstance(stmt, tree.Import) - assert [n.value for n in stmt.get_defined_names()] == ['time'] - - def test_hex_values_in_docstring(): source = r''' def foo(object):