mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
The deprecation of Python2.6 and the insertion of environments made it quite difficult to merge.
8 lines
243 B
Python
8 lines
243 B
Python
def test_module_attributes(Script):
|
|
def_, = Script('__name__').completions()
|
|
assert def_.name == '__name__'
|
|
assert def_.line is None
|
|
assert def_.column is None
|
|
str_, = def_._goto_definitions()
|
|
assert str_.name == 'str'
|