mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
Rewrite an extract test to make them more diverse
This commit is contained in:
@@ -245,10 +245,9 @@ def x(v1):
|
|||||||
# -------------------------------------------------- with-range-func-2
|
# -------------------------------------------------- with-range-func-2
|
||||||
import os
|
import os
|
||||||
# comment1
|
# comment1
|
||||||
@dec
|
|
||||||
# comment2
|
# comment2
|
||||||
def x(v1):
|
def x(v1):
|
||||||
#? 2 text {'new_name': 'a', 'until_line': 11, 'until_column': 0}
|
#? 2 text {'new_name': 'a', 'until_line': 10, 'until_column': 0}
|
||||||
#foo
|
#foo
|
||||||
v2 = 2
|
v2 = 2
|
||||||
if 1:
|
if 1:
|
||||||
@@ -259,6 +258,7 @@ x
|
|||||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
import os
|
import os
|
||||||
# comment1
|
# comment1
|
||||||
|
# comment2
|
||||||
def a(v1, v2, v3):
|
def a(v1, v2, v3):
|
||||||
#foo
|
#foo
|
||||||
v2 = 2
|
v2 = 2
|
||||||
@@ -268,10 +268,8 @@ def a(v1, v2, v3):
|
|||||||
return y
|
return y
|
||||||
|
|
||||||
|
|
||||||
@dec
|
|
||||||
# comment2
|
|
||||||
def x(v1):
|
def x(v1):
|
||||||
#? 2 text {'new_name': 'a', 'until_line': 11, 'until_column': 0}
|
#? 2 text {'new_name': 'a', 'until_line': 10, 'until_column': 0}
|
||||||
y = a(v1, v2, v3)
|
y = a(v1, v2, v3)
|
||||||
return y
|
return y
|
||||||
x
|
x
|
||||||
|
|||||||
Reference in New Issue
Block a user