提交 214cffcc authored 作者: Nicolas Bouchard's avatar Nicolas Bouchard 提交者: Frederic

pep8

上级 9db387c4
...@@ -152,7 +152,9 @@ class _HVStackTester(utt.InferShapeTester): ...@@ -152,7 +152,9 @@ class _HVStackTester(utt.InferShapeTester):
allow_input_downcast=True) allow_input_downcast=True)
tested = f(*blocks) tested = f(*blocks)
expected = self.expected_f(blocks, format=out_f, dtype=dtype) expected = self.expected_f(blocks,
format=out_f,
dtype=dtype)
assert np.allclose(tested.toarray(), expected.toarray()) assert np.allclose(tested.toarray(), expected.toarray())
assert tested.format == expected.format assert tested.format == expected.format
...@@ -248,7 +250,7 @@ class AddSSDataTester(utt.InferShapeTester): ...@@ -248,7 +250,7 @@ class AddSSDataTester(utt.InferShapeTester):
structured=True) structured=True)
class test_structured_add_s_v(unittest.TestCase): class StructuredAddSVTester(unittest.TestCase):
def setUp(self): def setUp(self):
utt.seed_rng() utt.seed_rng()
...@@ -284,7 +286,7 @@ class test_structured_add_s_v(unittest.TestCase): ...@@ -284,7 +286,7 @@ class test_structured_add_s_v(unittest.TestCase):
assert np.allclose(out.toarray(), spones.multiply(spmat + mat)) assert np.allclose(out.toarray(), spones.multiply(spmat + mat))
class test_mul_s_v(unittest.TestCase): class MulSVTester(unittest.TestCase):
def setUp(self): def setUp(self):
utt.seed_rng() utt.seed_rng()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论