Skip to content

Commit 81b9e9e

Browse files
committed
Change import of getfslineno to be compatible with pytest 6
Really it is private and shouldn't be imported at all, but that's for another time... Debugged by Florian Bruhin.
1 parent b25d3c3 commit 81b9e9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pytest_forked/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def runforked():
7373

7474

7575
def report_process_crash(item, result):
76-
from _pytest._code.source import getfslineno
76+
from _pytest._code import getfslineno
7777
path, lineno = getfslineno(item)
7878
info = ("%s:%s: running the test CRASHED with signal %d" %
7979
(path, lineno, result.signal))

0 commit comments

Comments
 (0)