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

Correctly test all pattern gived in tensor/tests/test_basic.py for the bad build parameter.

上级 fe6f980b
......@@ -149,12 +149,9 @@ def makeTester(name, op, expected, checks = {}, good = {}, bad_build = {},
for testname, inputs in self.bad_build.items():
inputs = [copy(input) for input in inputs]
inputrs = [value(input) for input in inputs]
try:
node = safe_make_node(self.op,*inputrs)
except:
return
self.fail("Test %s::%s: %s was successfully instantiated on the following bad inputs: %s"
% (self.op, testname, node, inputs))
self.assertRaises(Exception, safe_make_node, self.op, *inputrs)
# The old error string was ("Test %s::%s: %s was successfully instantiated on the following bad inputs: %s"
# % (self.op, testname, node, inputs))
def test_bad_runtime(self):
if skip:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论