adapt to new 1.3.0 hook registration

This commit is contained in:
holger krekel
2010-05-02 16:44:59 +02:00
parent 40277fbf7f
commit f18c78a118

View File

@@ -176,9 +176,9 @@ def pytest_addoption(parser):
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
# distributed testing hooks # distributed testing hooks
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
def pytest_registerhooks(pluginmanager): def pytest_addhooks(pluginmanager):
from xdist import newhooks from xdist import newhooks
pluginmanager.registerhooks(newhooks) pluginmanager.addhooks(newhooks)
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
# distributed testing initialization # distributed testing initialization