From f18c78a118e0bc6b9728d919790b43ffe98e8213 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Sun, 2 May 2010 16:44:59 +0200 Subject: [PATCH] adapt to new 1.3.0 hook registration --- xdist/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xdist/plugin.py b/xdist/plugin.py index dbcde3e..5360598 100644 --- a/xdist/plugin.py +++ b/xdist/plugin.py @@ -176,9 +176,9 @@ def pytest_addoption(parser): # ------------------------------------------------------------------------- # distributed testing hooks # ------------------------------------------------------------------------- -def pytest_registerhooks(pluginmanager): +def pytest_addhooks(pluginmanager): from xdist import newhooks - pluginmanager.registerhooks(newhooks) + pluginmanager.addhooks(newhooks) # ------------------------------------------------------------------------- # distributed testing initialization