mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
Fix a goto_definitions test.
This commit is contained in:
@@ -260,7 +260,7 @@ def test_signature_is_definition():
|
||||
"""
|
||||
s = """class Spam(): pass\nSpam"""
|
||||
signature = Script(s + '(').call_signatures()[0]
|
||||
definition = Script(s + '(').goto_definitions()[0]
|
||||
definition = Script(s + '(', column=0).goto_definitions()[0]
|
||||
signature.line == 1
|
||||
signature.column == 6
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ def test_doc():
|
||||
|
||||
def test_string_literals():
|
||||
def typ(string):
|
||||
d = Script(string).goto_definitions()[0]
|
||||
d = Script("a = %s; a" % string).goto_definitions()[0]
|
||||
return d.name
|
||||
|
||||
assert typ('""') == 'str'
|
||||
|
||||
Reference in New Issue
Block a user