Skip to content

Commit 9c7f1d9

Browse files
committed
Remove compat.getfslineno
1 parent dab90ef commit 9c7f1d9

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/_pytest/compat.py

-7
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,6 @@ def get_real_method(obj, holder):
306306
return obj
307307

308308

309-
def getfslineno(obj) -> Tuple[Union[str, py.path.local], int]:
310-
"""(**Deprecated**, use _pytest._code.source.getfslineno directly)"""
311-
import _pytest._code.source
312-
313-
return _pytest._code.source.getfslineno(obj)
314-
315-
316309
def getimfunc(func):
317310
try:
318311
return func.__func__

0 commit comments

Comments
 (0)