コード例 #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)
コード例 #2
0
 def test_float_cube__scalar_float(self):
     result = _inplace_common_checks(self.float_cube, self.scalar_float,
                                     self.op)
     self.assertIsNone(result)
コード例 #3
0
 def test_int_cubes(self):
     result = _inplace_common_checks(self.int_cube, self.int_cube, self.op)
     self.assertIsNone(result)
コード例 #4
0
 def test_float_cube_uint_cube(self):
     result = _inplace_common_checks(self.float_cube, self.uint_cube,
                                     self.op)
     self.assertIsNone(result)
コード例 #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)
コード例 #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)
コード例 #7
0
 def test_uint_cube__int_array(self):
     with self.assertRaisesRegex(ArithmeticError, self.emsg):
         _inplace_common_checks(self.uint_cube, self.int_cube, self.op)
コード例 #8
0
 def test_float_cube__float_array(self):
     result = _inplace_common_checks(self.float_cube, self.float_data,
                                     self.op)
     self.assertIsNone(result)
コード例 #9
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)
コード例 #10
0
 def test_float_cube__scalar_float(self):
     result = _inplace_common_checks(self.float_cube, self.scalar_float,
                                     self.op)
     self.assertIsNone(result)
コード例 #11
0
 def test_float_cube_uint_cube(self):
     result = _inplace_common_checks(self.float_cube, self.uint_cube,
                                     self.op)
     self.assertIsNone(result)
コード例 #12
0
 def test_int_cubes(self):
     result = _inplace_common_checks(self.int_cube, self.int_cube, self.op)
     self.assertIsNone(result)
コード例 #13
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)
コード例 #14
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)
コード例 #15
0
 def test_float_cube__float_array(self):
     result = _inplace_common_checks(self.float_cube, self.float_data,
                                     self.op)
     self.assertIsNone(result)