Пример #1
0
    def __init__(self, target, startup_timeout=10, http_port=0):
        super(TestRunnerIHandler,
              self).__init__(target=target,
                             startup_timeout=startup_timeout,
                             http_port=http_port)
        self._cfg.parent = self.target.cfg

        self.report = self._initial_report()
        self.report_mutex = threading.Lock()
        self._pool = None
        self._http_handler = None

        self._created_environments = {}
        self._reloader = reloader.ModuleReloader(
            extra_deps=self.cfg.extra_deps)
        self._resource_loader = resource_loader.ResourceLoader()
Пример #2
0
    def __init__(self, target, startup_timeout=10, http_port=0):
        super(TestRunnerIHandler,
              self).__init__(target=target,
                             startup_timeout=startup_timeout,
                             http_port=http_port)
        self.cfg.parent = self.target.cfg
        self.parent = self.target
        self.report = self._initial_report()
        self.report_mutex = threading.Lock()
        self._pool = None
        self._http_handler = None
        self._created_environments = {}

        try:
            self._reloader = reloader.ModuleReloader(
                extra_deps=getattr(self.cfg, "extra_deps", None),
                scheduled_modules=getattr(self.parent, "scheduled_modules",
                                          None),
            )
        except RuntimeError:
            self._reloader = None
        self._resource_loader = resource_loader.ResourceLoader()