'.. deprecated:: 2.8
Use :py:meth:`pluggy.PluginManager.add_hookspecs` instead.'

def addhooks(self, module_or_class):

    warning = dict(code='I2', fslocation=_pytest._code.getfslineno(sys._getframe(1)), nodeid=None, message='use    pluginmanager.add_hookspecs    instead    of    deprecated    addhooks()    method.')
    self._warn(warning)
    return self.add_hookspecs(module_or_class)
