def test_repr_obeys_max_seq_limit(self):
with option_context("display.max_seq_items", 2000):
self.assertTrue(len(com.pprint_thing(lrange(1000))) > 1000)
with option_context("display.max_seq_items", 5):
self.assertTrue(len(com.pprint_thing(lrange(1000))) < 100)
test_format.py 文件源码
python
阅读 33
收藏 0
点赞 0
评论 0
评论列表
文章目录