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

@@ -1,2 +1,2 @@
#
__version__ = '1.5a6'
__version__ = '1.5a7'

View File

@@ -119,7 +119,7 @@ def init_slave_session(channel, args, option_dict):
sys.path[:] = newpaths
#fullwidth, hasmarkup = channel.receive()
from pytest.plugin.config import Config
from _pytest.config import Config
config = Config()
config.option.__dict__.update(option_dict)
config._preparse(args)

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)

View File

@@ -105,7 +105,7 @@ def getinfodict():
)
def remote_initconfig(option_dict, args):
from pytest.plugin.config import Config
from _pytest.config import Config
config = Config()
config.pluginmanager.unregister(name="terminal")
config._preparse(args, addopts=False)

View File

@@ -3,7 +3,7 @@ import sys, os
import execnet
import xdist.remote
from pytest.plugin import runner # XXX load dynamically
from _pytest import runner # XXX load dynamically
class NodeManager(object):
def __init__(self, config, specs=None):