def example_app_process(): p = start_example_app_process() try: yield p finally: p.join() sleep()
def setUp(self): # logger = logging.getLogger("py4j") # logger.setLevel(logging.DEBUG) # logger.addHandler(logging.StreamHandler()) self.p = start_example_app_process() time.sleep(0.5) self.gateway = JavaGateway()
def setUp(self): self.p = start_example_app_process() # This is to ensure that the server is started before connecting to it! time.sleep(1) self.gateway = JavaGateway()
def setUp(self): self.p = start_example_app_process() self.gateway = JavaGateway()
def setUp(self): self.p = start_example_app_process() self.gateway = JavaGateway( gateway_parameters=GatewayParameters(auto_convert=True))
def setUp(self): self.p = start_example_app_process() time.sleep(0.5) self.gateway = JavaGateway()
def setUp(self): self.p = start_example_app_process() self.gateway = JavaGateway(gateway_parameters=GatewayParameters( auto_convert=True))