Example #1
0
 def test_uint_cube_float_cube(self):
     with self.assertRaisesRegexp(ArithmeticError, self.emsg):
         _inplace_common_checks(self.uint_cube, self.float_cube, self.op)
Example #2
0
 def test_float_cube__scalar_float(self):
     result = _inplace_common_checks(self.float_cube, self.scalar_float,
                                     self.op)
     self.assertIsNone(result)
Example #3
0
 def test_int_cubes(self):
     result = _inplace_common_checks(self.int_cube, self.int_cube, self.op)
     self.assertIsNone(result)
Example #4
0
 def test_float_cube_uint_cube(self):
     result = _inplace_common_checks(self.float_cube, self.uint_cube,
                                     self.op)
     self.assertIsNone(result)
Example #5
0
 def test_int_cube__scalar_float(self):
     with self.assertRaisesRegexp(ArithmeticError, self.emsg):
         _inplace_common_checks(self.int_cube, self.scalar_float, self.op)
Example #6
0
 def test_int_cube__float_array(self):
     with self.assertRaisesRegexp(ArithmeticError, self.emsg):
         _inplace_common_checks(self.int_cube, self.float_data, self.op)
 def test_uint_cube__int_array(self):
     with self.assertRaisesRegex(ArithmeticError, self.emsg):
         _inplace_common_checks(self.uint_cube, self.int_cube, self.op)
Example #8
0
 def test_float_cube__float_array(self):
     result = _inplace_common_checks(self.float_cube, self.float_data,
                                     self.op)
     self.assertIsNone(result)
 def test_uint_cube_float_cube(self):
     with self.assertRaisesRegexp(ArithmeticError, self.emsg):
         _inplace_common_checks(self.uint_cube, self.float_cube, self.op)
 def test_float_cube__scalar_float(self):
     result = _inplace_common_checks(self.float_cube, self.scalar_float,
                                     self.op)
     self.assertIsNone(result)
 def test_float_cube_uint_cube(self):
     result = _inplace_common_checks(self.float_cube, self.uint_cube,
                                     self.op)
     self.assertIsNone(result)
 def test_int_cubes(self):
     result = _inplace_common_checks(self.int_cube, self.int_cube, self.op)
     self.assertIsNone(result)
 def test_int_cube__float_array(self):
     with self.assertRaisesRegexp(ArithmeticError, self.emsg):
         _inplace_common_checks(self.int_cube, self.float_data, self.op)
 def test_int_cube__scalar_float(self):
     with self.assertRaisesRegexp(ArithmeticError, self.emsg):
         _inplace_common_checks(self.int_cube, self.scalar_float, self.op)
 def test_float_cube__float_array(self):
     result = _inplace_common_checks(self.float_cube, self.float_data,
                                     self.op)
     self.assertIsNone(result)