提交 af1c40c5 编写于 作者: HansBug's avatar HansBug 😆

dev(hansbug): fix problem in png size on windows

上级 66f70a72
......@@ -745,8 +745,9 @@ def get_treevalue_test(treevalue_class: Type[TreeValue]):
_repr_png_ = t1._repr_png_()
assert isinstance(_repr_png_, bytes)
if OS.windows:
print(len(_repr_png_))
assert 16050 <= len(_repr_png_) <= 20500
assert 12000 <= len(_repr_png_) <= 16050
else:
assert 16050 <= len(_repr_png_) <= 20500
def test_repr_jpeg(self):
t1 = get_demo_constraint_tree()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册