summaryrefslogtreecommitdiff
path: root/src/_pytest/compat.py
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2020-02-04 02:40:59 +0100
committerDaniel Hahler <git@thequod.de>2020-02-04 02:40:59 +0100
commit9c7f1d9b329f97914d75c2891f20def973429fa5 (patch)
tree40a4c483012d0ca0754c59fbf12acb8145aeff10 /src/_pytest/compat.py
parentdab90ef726cf33579e692820f82797d8e906ff8a (diff)
downloadpytest-9c7f1d9b329f97914d75c2891f20def973429fa5.tar.gz
Remove compat.getfslineno
Diffstat (limited to 'src/_pytest/compat.py')
-rw-r--r--src/_pytest/compat.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/_pytest/compat.py b/src/_pytest/compat.py
index 3a3645c5a..f204dbd2d 100644
--- a/src/_pytest/compat.py
+++ b/src/_pytest/compat.py
@@ -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__