Exemplo n.º 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)
Exemplo n.º 2
0
 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)