提交 50245d71 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix test that is searching for an error text.

上级 07e95861
......@@ -122,10 +122,9 @@ class T_subtensor(unittest.TestCase, utt.TestOptimizationMixin):
try:
try:
self.eval_output_and_check(t)
assert 0
except Exception, e:
if 'out of bounds' not in exc_message(e):
raise
except IndexError, e:
return
self.fail()
finally:
_logger.setLevel(oldlevel)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论