示例#1
0
def test_check_chunks_unknown_shape():
    with pytest.raises(ValueError):
        a = mt.random.rand(10, chunk_size=5)
        mt.random.shuffle(a)
        a = a.tiles()
        utils.check_chunks_unknown_shape([a], ValueError)
示例#2
0
文件: test_utils.py 项目: sc1101/mars
 def testCheckChunksUnknownShape(self):
     with self.assertRaises(ValueError):
         a = mt.random.rand(10, chunk_size=5)
         mt.random.shuffle(a)
         a = a.tiles()
         utils.check_chunks_unknown_shape([a], ValueError)