提交 f69bb52a authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Remove print statements in tests.

上级 f956522f
...@@ -39,7 +39,6 @@ class OpDecoratorTests(unittest.TestCase): ...@@ -39,7 +39,6 @@ class OpDecoratorTests(unittest.TestCase):
fn = function([x, y], diag_mult(x, y)) fn = function([x, y], diag_mult(x, y))
r = fn([[1.5, 5],[2, 2]], [1, 100]) r = fn([[1.5, 5],[2, 2]], [1, 100])
r0 = np.array([1.5, 200]) r0 = np.array([1.5, 200])
print r
assert allclose(r, r0), (r, r0) assert allclose(r, r0), (r, r0)
...@@ -60,7 +59,6 @@ class OpDecoratorTests(unittest.TestCase): ...@@ -60,7 +59,6 @@ class OpDecoratorTests(unittest.TestCase):
fn = function([x, y], diag_mult(x, y).shape) fn = function([x, y], diag_mult(x, y).shape)
r = fn([[1.5, 5],[2, 2]], [1, 100]) r = fn([[1.5, 5],[2, 2]], [1, 100])
r0 = (2,) r0 = (2,)
print r
assert allclose(r, r0), (r, r0) assert allclose(r, r0), (r, r0)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论