remove the scope_names_generator stuff again. We should enable it somewhere in time, but for now it just breaks tests.

This commit is contained in:
Dave Halter
2014-07-27 09:43:22 +02:00
parent c85bdb8ff1
commit 606b6851ff
2 changed files with 3 additions and 3 deletions

View File

@@ -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):
"""

View File

@@ -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()