提交 d520e7b7 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

added comment explaining a test

上级 83fbdd96
......@@ -296,11 +296,16 @@ def test_get_debug_values_exc():
try:
for x_val in op.get_debug_values(x):
#this assert catches the case where we
#erroneously get a value returned
assert False
raised = False
except AttributeError:
raised = True
#this assert catches the case where we got []
#returned, and possibly issued a warning,
#rather than raising an exception
assert raised
finally:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论