adapt to new import locations

This commit is contained in:
holger krekel
2010-11-13 11:12:19 +01:00
parent 8272a669a4
commit a0652e9d99
9 changed files with 20 additions and 14 deletions

View File

@@ -236,7 +236,7 @@ def pytest_runtest_protocol(item):
def forked_run_report(item):
# for now, we run setup/teardown in the subprocess
# XXX optionally allow sharing of setup/teardown
from pytest.plugin.runner import runtestprotocol
from _pytest.runner import runtestprotocol
EXITSTATUS_TESTEXIT = 4
import marshal
from xdist.remote import serialize_report
@@ -262,7 +262,7 @@ def report_process_crash(item, result):
path, lineno = item._getfslineno()
info = "%s:%s: running the test CRASHED with signal %d" %(
path, lineno, result.signal)
from pytest.plugin import runner
from _pytest import runner
call = runner.CallInfo(lambda: 0/0, "???")
call.excinfo = info
rep = runner.pytest_runtest_makereport(item, call)