예제 #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)