提交 84dead87 authored 作者: Benjamin Scellier's avatar Benjamin Scellier

remove older error texts

上级 a9de424f
......@@ -326,12 +326,7 @@ class TestComputeTestValue(unittest.TestCase):
n_steps=k)
assert False
except ValueError as e:
# The first message is for numpy before 1.6.
# 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") or
str(e).startswith("could not broadcast input")), str(e)
assert (str(e).startswith("could not broadcast input")), str(e)
finally:
theano.config.compute_test_value = orig_compute_test_value
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论