提交 b0cc9329 authored 作者: Frederic Bastien's avatar Frederic Bastien

Better test error message

上级 8f2a4d8f
...@@ -331,7 +331,7 @@ class TestComputeTestValue(unittest.TestCase): ...@@ -331,7 +331,7 @@ class TestComputeTestValue(unittest.TestCase):
assert (str(e).startswith("shape mismatch") or assert (str(e).startswith("shape mismatch") or
str(e).startswith("operands could not be broadcast " str(e).startswith("operands could not be broadcast "
"together with shapes") or "together with shapes") or
str(e).startswith("could not broadcast input")) str(e).startswith("could not broadcast input")), str(e)
finally: finally:
theano.config.compute_test_value = orig_compute_test_value theano.config.compute_test_value = orig_compute_test_value
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论