コード例 #1
0
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()
コード例 #2
0
 def setUp(self):
     self.loop = asyncio.new_event_loop()
     asyncio.set_event_loop(None)
     self.connector = GremlinConnector(loop=self.loop)