adapt xdist plugin - it still uses some internal imports

This commit is contained in:
holger krekel
2010-10-10 15:33:32 +02:00
parent dc67e46d59
commit 025f1d577e
7 changed files with 11 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
from xdist.dsession import DSession, LoadScheduling, EachScheduling
from py._test import session as outcome
from pytest.plugin import pytest_session as outcome
import py
import execnet
@@ -140,7 +140,7 @@ class TestDistReporter:
@py.test.mark.xfail
def test_rsync_printing(self, testdir, linecomp):
config = testdir.parseconfig()
from py._plugin.pytest_terminal import TerminalReporter
from pytest.plugin.pytest_terminal import TerminalReporter
rep = TerminalReporter(config, file=linecomp.stringio)
config.pluginmanager.register(rep, "terminalreporter")
dsession = DSession(config)