Remove compat.getfslineno
This commit is contained in:
parent
dab90ef726
commit
9c7f1d9b32
|
@ -306,13 +306,6 @@ def get_real_method(obj, holder):
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
|
|
||||||
def getfslineno(obj) -> Tuple[Union[str, py.path.local], int]:
|
|
||||||
"""(**Deprecated**, use _pytest._code.source.getfslineno directly)"""
|
|
||||||
import _pytest._code.source
|
|
||||||
|
|
||||||
return _pytest._code.source.getfslineno(obj)
|
|
||||||
|
|
||||||
|
|
||||||
def getimfunc(func):
|
def getimfunc(func):
|
||||||
try:
|
try:
|
||||||
return func.__func__
|
return func.__func__
|
||||||
|
|
Loading…
Reference in New Issue