Blame SOURCES/fix-pytest5-compatibility.patch

517fc9
diff --git a/src/pytest_forked/__init__.py b/src/pytest_forked/__init__.py
517fc9
index fa0600d..886c4c8 100644
517fc9
--- a/src/pytest_forked/__init__.py
517fc9
+++ b/src/pytest_forked/__init__.py
517fc9
@@ -71,13 +71,8 @@ def forked_run_report(item):
517fc9
 
517fc9
 
517fc9
 def report_process_crash(item, result):
517fc9
-    try:
517fc9
-        from _pytest.compat import getfslineno
517fc9
-    except ImportError:
517fc9
-        # pytest<4.2
517fc9
-        path, lineno = item._getfslineno()
517fc9
-    else:
517fc9
-        path, lineno = getfslineno(item)
517fc9
+    from _pytest._code.source import getfslineno
517fc9
+    path, lineno = getfslineno(item)
517fc9
     info = ("%s:%s: running the test CRASHED with signal %d" %
517fc9
             (path, lineno, result.signal))
517fc9
     from _pytest import runner