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