test_lambda.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:clickhouse-sqlalchemy 作者: xzkostyan 项目源码 文件源码
def test_lambda_no_arg_kwargs(self):
        with self.assertRaises(exc.CompileError) as ex:
            self.compile(Lambda(lambda x, *args: x * 2))

        self.assertEqual(
            str(ex.exception),
            'Lambdas with *args are not supported'
        )

        with self.assertRaises(exc.CompileError) as ex:
            self.compile(Lambda(lambda x, **kwargs: x * 2))

        self.assertEqual(
            str(ex.exception),
            'Lambdas with **kwargs are not supported'
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号