def test_truncate_larger_than_2gb(self):
lo = self.conn.lobject()
length = 1 << 32 # 4gb
self.assertRaises(
(OverflowError, psycopg2.InterfaceError, psycopg2.NotSupportedError),
lo.truncate, length)
test_lobject.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录