Remove compat.getfslineno
This commit is contained in:
parent
dab90ef726
commit
9c7f1d9b32
|
@ -306,13 +306,6 @@ def get_real_method(obj, holder):
|
|||
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):
|
||||
try:
|
||||
return func.__func__
|
||||
|
|
Loading…
Reference in New Issue