def _makeRegistry(self): from pyramid.registry import Registry registry = Registry() registry.introspector = DummyIntrospector() return registry