Blame SOURCES/fix-pytest5-compatibility.patch

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