diff --git a/lbry/lbry/extras/daemon/Component.py b/lbry/lbry/extras/daemon/Component.py index 46da5f3b2..61eb9642b 100644 --- a/lbry/lbry/extras/daemon/Component.py +++ b/lbry/lbry/extras/daemon/Component.py @@ -9,7 +9,7 @@ log = logging.getLogger(__name__) class ComponentType(type): def __new__(mcs, name, bases, newattrs): klass = type.__new__(mcs, name, bases, newattrs) - if name != "Component": + if name != "Component" and newattrs['__module__'] != 'lbry.testcase': ComponentManager.default_component_classes[klass.component_name] = klass return klass