mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Clean up the namedtuple test for #1060
This commit is contained in:
@@ -82,11 +82,6 @@ def test_namedtuple_goto_definitions(Script):
|
||||
|
||||
from jedi.api import Script
|
||||
|
||||
lines = source.split("\n")
|
||||
d1, = Script(source).goto_definitions()
|
||||
|
||||
print(d1)
|
||||
print(d1.line)
|
||||
print(d1.module_path)
|
||||
print(d1.get_line_code())
|
||||
assert d1.get_line_code() == lines[-1]
|
||||
assert d1.get_line_code() == "class Foo(tuple):"
|
||||
|
||||
Reference in New Issue
Block a user