mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +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
|
from jedi.api import Script
|
||||||
|
|
||||||
lines = source.split("\n")
|
|
||||||
d1, = Script(source).goto_definitions()
|
d1, = Script(source).goto_definitions()
|
||||||
|
|
||||||
print(d1)
|
assert d1.get_line_code() == "class Foo(tuple):"
|
||||||
print(d1.line)
|
|
||||||
print(d1.module_path)
|
|
||||||
print(d1.get_line_code())
|
|
||||||
assert d1.get_line_code() == lines[-1]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user