提交 262b4f75 authored 作者: Frederic's avatar Frederic

Fix test with numpy 1.7.1 or python 3.3.0.

The error message changed.
上级 c3ddf8d6
......@@ -2898,7 +2898,7 @@ class T_subtensor(unittest.TestCase, utt.TestOptimizationMixin):
self.eval_output_and_check(t)
assert 0
except Exception, e:
if exc_message(e) != 'index out of bounds':
if 'out of bounds' not in exc_message(e):
raise
finally:
_logger.setLevel(oldlevel)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论