コード例 #1
0
ファイル: test_context.py プロジェクト: isac322/linux_aio
    def test_double_close(self):
        ctx = AIOContext(2)
        ctx.close()
        ctx.close()

        self.assertTrue(ctx.closed)
コード例 #2
0
ファイル: test_context.py プロジェクト: isac322/linux_aio
    def test_ctx_setup(self):
        ctx = AIOContext(2)
        ctx.close()

        self.assertTrue(ctx.closed)