test_rpc.py 文件源码

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

项目:ryu-lagopus-ext 作者: lagopus 项目源码 文件源码
def test_0_call_int2(self):
        c = rpc.Client(self._client_sock)
        obj = six.MAXSIZE
        assert isinstance(obj, int)
        result = c.call(b'resp', [obj])
        assert result == obj
        import sys
        # note: on PyPy, result will be a long type value.
        sv = getattr(sys, 'subversion', None)
        if sv is not None and sv[0] == 'PyPy':
            assert isinstance(result, long)
        else:
            assert isinstance(result, type(obj))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号