small adaptations to py.impl move (should eventually not be neccessary to do such things)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
from xdist.dsession import DSession
|
from xdist.dsession import DSession
|
||||||
from py.impl.test import outcome
|
from py._test import outcome
|
||||||
import py
|
import py
|
||||||
import execnet
|
import execnet
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import py
|
import py
|
||||||
import os
|
import os
|
||||||
from xdist.gwmanage import GatewayManager, HostRSync
|
from xdist.gwmanage import GatewayManager, HostRSync
|
||||||
from py.impl.test.pluginmanager import HookRelay, Registry
|
from py._test.pluginmanager import HookRelay, Registry
|
||||||
from py.plugin import hookspec
|
from py._plugin import hookspec
|
||||||
import execnet
|
import execnet
|
||||||
|
|
||||||
def pytest_funcarg__hookrecorder(request):
|
def pytest_funcarg__hookrecorder(request):
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class TestImmutablePickling:
|
|||||||
|
|
||||||
class TestConfigPickling:
|
class TestConfigPickling:
|
||||||
def test_config_getstate_setstate(self, testdir):
|
def test_config_getstate_setstate(self, testdir):
|
||||||
from py.impl.test.config import Config
|
from py._test.config import Config
|
||||||
testdir.makepyfile(__init__="", conftest="x=1; y=2")
|
testdir.makepyfile(__init__="", conftest="x=1; y=2")
|
||||||
hello = testdir.makepyfile(hello="")
|
hello = testdir.makepyfile(hello="")
|
||||||
tmp = testdir.tmpdir
|
tmp = testdir.tmpdir
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import py
|
import py
|
||||||
from py.impl.test.session import Session
|
from py._test.session import Session
|
||||||
from py.impl.test import outcome
|
from py._test import outcome
|
||||||
from xdist.nodemanage import NodeManager
|
from xdist.nodemanage import NodeManager
|
||||||
queue = py.builtin._tryimport('queue', 'Queue')
|
queue = py.builtin._tryimport('queue', 'Queue')
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ program source code to the remote place. All test results
|
|||||||
are reported back and displayed to your local test session.
|
are reported back and displayed to your local test session.
|
||||||
You may specify different Python versions and interpreters.
|
You may specify different Python versions and interpreters.
|
||||||
|
|
||||||
|
.. _`pytest-xdist`: http://pytest.org/plugin/xdist.html
|
||||||
|
|
||||||
Usage examples
|
Usage examples
|
||||||
---------------------
|
---------------------
|
||||||
@@ -202,7 +203,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 py.plugin.pytest_runner import runtestprotocol
|
from py._plugin.pytest_runner import runtestprotocol
|
||||||
EXITSTATUS_TESTEXIT = 4
|
EXITSTATUS_TESTEXIT = 4
|
||||||
from xdist.mypickle import ImmutablePickler
|
from xdist.mypickle import ImmutablePickler
|
||||||
ipickle = ImmutablePickler(uneven=0)
|
ipickle = ImmutablePickler(uneven=0)
|
||||||
@@ -230,6 +231,6 @@ 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 py.plugin.pytest_runner import ItemTestReport
|
from py._plugin.pytest_runner import ItemTestReport
|
||||||
return ItemTestReport(item, excinfo=info, when="???")
|
return ItemTestReport(item, excinfo=info, when="???")
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
import py
|
import py
|
||||||
import sys
|
import sys
|
||||||
import execnet
|
import execnet
|
||||||
from py.impl.test.session import Session
|
from py._test.session import Session
|
||||||
from xdist import util
|
from xdist import util
|
||||||
|
|
||||||
class LooponfailingSession(Session):
|
class LooponfailingSession(Session):
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
import py
|
import py
|
||||||
from xdist.mypickle import PickleChannel
|
from xdist.mypickle import PickleChannel
|
||||||
from py.impl.test import outcome
|
from py._test import outcome
|
||||||
|
|
||||||
class TXNode(object):
|
class TXNode(object):
|
||||||
""" Represents a Test Execution environment in the controlling process.
|
""" Represents a Test Execution environment in the controlling process.
|
||||||
|
|||||||
Reference in New Issue
Block a user