def test0_err_invalid(self):
        # it is impossible to retrieve a view of a 0-d tensor
        n = self.shared(numpy.ones((), dtype=self.dtype))
        try:
            t = n[0]
        except __HOLE__ as e:
            self.assertTrue(hasattr(e, 'subtensor_invalid'))
            return
        self.fail()
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/tensor/tests/test_subtensor.py/T_subtensor.test0_err_invalid