class ContextMngrTest(unittest.TestCase): def setUp(self): self.loop = asyncio.new_event_loop() asyncio.set_event_loop(None) self.connector = GremlinConnector(loop=self.loop) def tearDown(self): self.loop.run_until_complete(self.connector.close()) self.loop.close()
def setUp(self): self.loop = asyncio.new_event_loop() asyncio.set_event_loop(None) self.connector = GremlinConnector(loop=self.loop)