From 606b6851ff69823df0d78ebbdfc92bd949f5908c Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 27 Jul 2014 09:43:22 +0200 Subject: [PATCH] remove the scope_names_generator stuff again. We should enable it somewhere in time, but for now it just breaks tests. --- jedi/parser/representation.py | 3 --- test/test_parser/test_representation.py | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jedi/parser/representation.py b/jedi/parser/representation.py index b9eb7100..b85f2fb3 100644 --- a/jedi/parser/representation.py +++ b/jedi/parser/representation.py @@ -396,9 +396,6 @@ class Module(IsScope): For isinstance checks. fast_parser.Module also inherits from this. """ - def scope_names_generator(self, position=None): - yield self, filter_after_position(self.get_defined_names(), position) - class SubModule(Scope, Module): """ diff --git a/test/test_parser/test_representation.py b/test/test_parser/test_representation.py index ef1a33eb..101848c5 100644 --- a/test/test_parser/test_representation.py +++ b/test/test_parser/test_representation.py @@ -2,6 +2,8 @@ from jedi.parser import Parser from jedi.parser import representation as pr from jedi._compatibility import u +import pytest + def test_import_is_nested(): imp = Parser(u('import ')).module.imports[0] @@ -9,5 +11,6 @@ def test_import_is_nested(): assert not imp.is_nested() +@pytest.mark.skipif('True', 'Reenable this later, module should also have a scope_names_generator.') def test_module_scope_name_generator(): assert pr.Module().scope_names_generator()