提交 ab7a0f31 authored 作者: Frederic Bastien's avatar Frederic Bastien

Test all case as expected...

上级 c62726e3
...@@ -177,13 +177,10 @@ def makeTester(name, op, expected, checks = {}, good = {}, bad_build = {}, ...@@ -177,13 +177,10 @@ def makeTester(name, op, expected, checks = {}, good = {}, bad_build = {},
exc_value.args = exc_value.args + (err_msg, ) exc_value.args = exc_value.args + (err_msg, )
raise type, exc_value, traceback raise type, exc_value, traceback
try: # Add tester return a ValueError. Should we catch only this one?
variables = f(*inputs) # TODO: test that only this one is raised and catch only this one
except: # or the subset that get raised.
return self.assertRaises(Exception, f, *inputs)
self.fail("Test %s::%s: Successful call on the following bad inputs: %s"
% (self.op, testname, inputs))
def test_grad(self): def test_grad(self):
if skip: if skip:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论