提交 8ef431d6 authored 作者: James Bergstra's avatar James Bergstra

pickling test is ok to fail in debugmode

上级 5c9335b7
......@@ -434,7 +434,14 @@ class T_picklefunction(unittest.TestCase):
blah = SomethingToPickle()
assert blah.f2.container[blah.s].storage is blah.f1.container[blah.s].storage
blah2 = copy.deepcopy(blah)
try:
blah2 = copy.deepcopy(blah)
except NotImplementedError, e:
if e[0].startswith('DebugMode is not picklable'):
return
else:
raise
assert blah2.f2.container[blah2.s].storage is blah2.f1.container[blah2.s].storage
assert blah.f1[blah.s] == blah2.f1[blah2.s]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论