adapt to shifted plugin names
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
from xdist.dsession import DSession, LoadScheduling, EachScheduling
|
from xdist.dsession import DSession, LoadScheduling, EachScheduling
|
||||||
from pytest.plugin import pytest_session as outcome
|
from pytest.plugin import session as outcome
|
||||||
import py
|
import py
|
||||||
import execnet
|
import execnet
|
||||||
|
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ def pytest_runtest_protocol(item):
|
|||||||
def forked_run_report(item):
|
def forked_run_report(item):
|
||||||
# for now, we run setup/teardown in the subprocess
|
# for now, we run setup/teardown in the subprocess
|
||||||
# XXX optionally allow sharing of setup/teardown
|
# XXX optionally allow sharing of setup/teardown
|
||||||
from pytest.plugin.pytest_runner import runtestprotocol
|
from pytest.plugin.runner import runtestprotocol
|
||||||
EXITSTATUS_TESTEXIT = 4
|
EXITSTATUS_TESTEXIT = 4
|
||||||
import marshal
|
import marshal
|
||||||
from xdist.remote import serialize_report
|
from xdist.remote import serialize_report
|
||||||
@@ -254,7 +254,7 @@ def report_process_crash(item, result):
|
|||||||
path, lineno = item._getfslineno()
|
path, lineno = item._getfslineno()
|
||||||
info = "%s:%s: running the test CRASHED with signal %d" %(
|
info = "%s:%s: running the test CRASHED with signal %d" %(
|
||||||
path, lineno, result.signal)
|
path, lineno, result.signal)
|
||||||
from pytest.plugin import pytest_runner as runner
|
from pytest.plugin import runner
|
||||||
call = runner.CallInfo(lambda: 0/0, "???")
|
call = runner.CallInfo(lambda: 0/0, "???")
|
||||||
call.excinfo = info
|
call.excinfo = info
|
||||||
rep = runner.pytest_runtest_makereport(item, call)
|
rep = runner.pytest_runtest_makereport(item, call)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import sys, os
|
|||||||
import execnet
|
import execnet
|
||||||
import xdist.remote
|
import xdist.remote
|
||||||
|
|
||||||
from pytest.plugin import pytest_runner as runner # XXX load dynamically
|
from pytest.plugin import runner # XXX load dynamically
|
||||||
|
|
||||||
class NodeManager(object):
|
class NodeManager(object):
|
||||||
def __init__(self, config, specs=None):
|
def __init__(self, config, specs=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user