提交 748116e8 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

fixed bug where KnownFailureTest was raised even if nothing bad happened

上级 fdcaa5a0
......@@ -577,7 +577,8 @@ def test_naacl_model(iters_per_unsup=3, iters_per_sup=3,
known_fail = True
except TypeError:
known_fail = True
raise KnownFailureTest("Deprecated compile.module fails to "
if known_fail:
raise KnownFailureTest("Deprecated compile.module fails to "
"give a sensible warning when updates to a variable "
"have the wrong type")
s0, s1 = [str(j) for j in m.pretraining_update(*inputs)]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论