Remove compat.getfslineno

This commit is contained in:
Daniel Hahler 2020-02-04 02:40:59 +01:00
parent dab90ef726
commit 9c7f1d9b32
1 changed files with 0 additions and 7 deletions

View File

@ -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__