mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-11 08:11:50 +08:00
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:
@@ -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):
|
||||
"""
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user