We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bedbc83 + 1eb5791 commit 74b3e8bCopy full SHA for 74b3e8b
1 file changed
src/pytest_forked/__init__.py
@@ -71,13 +71,8 @@ def runforked():
71
72
73
def report_process_crash(item, result):
74
- try:
75
- from _pytest.compat import getfslineno
76
- except ImportError:
77
- # pytest<4.2
78
- path, lineno = item._getfslineno()
79
- else:
80
- path, lineno = getfslineno(item)
+ from _pytest._code.source import getfslineno
+ path, lineno = getfslineno(item)
81
info = ("%s:%s: running the test CRASHED with signal %d" %
82
(path, lineno, result.signal))
83
from _pytest import runner
0 commit comments