finalize 1.12 version, some more adaptation for pytest versions, streamlining tox.ini

This commit is contained in:
holger krekel
2015-05-06 13:41:39 +02:00
parent faf2e0861f
commit 2ea07f73a7
6 changed files with 13 additions and 7 deletions

View File

@@ -2,13 +2,15 @@ import py
import pytest
import execnet
from _pytest.pytester import HookRecorder
from xdist import slavemanage
from xdist import slavemanage, newhooks
from xdist.slavemanage import HostRSync, NodeManager
pytest_plugins = "pytester",
pytest_plugins = "pytester"
def pytest_funcarg__hookrecorder(request, config):
hookrecorder = HookRecorder(config.pluginmanager)
if hasattr(hookrecorder, "start_recording"):
hookrecorder.start_recording(newhooks)
request.addfinalizer(hookrecorder.finish_recording)
return hookrecorder