提交 785daf9a authored 作者: Frederic's avatar Frederic

make test check the new error msg.

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