提交 6302797b authored 作者: Frederic's avatar Frederic

Remove assert in a test that isn't well taught. It give random tests failure.

上级 5f8b3aae
...@@ -53,10 +53,10 @@ def test_gc_never_pickles_temporaries(): ...@@ -53,10 +53,10 @@ def test_gc_never_pickles_temporaries():
len_pre_f = len(cPickle.dumps(f)) len_pre_f = len(cPickle.dumps(f))
len_pre_g = len(cPickle.dumps(g)) len_pre_g = len(cPickle.dumps(g))
# should be no difference at first # We can't compare the content or the length of the string
# In future, FunctionMaker might pickle linker-dependent stuff and make # between f and g. 2 reason, we store some timming information
# this assertion fail. # in float. They won't be the same each time. Different float
assert len_pre_f == len_pre_g # can have different lenght when printed.
def a(fn): def a(fn):
return len(cPickle.dumps(fn.maker)) return len(cPickle.dumps(fn.maker))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论