• Home
  • Raw
  • Download

Lines Matching refs:__setitem__

1398         self.assertRaises(TypeError, nd.__setitem__, 1, 8)
1401 self.assertRaises(TypeError, mv.__setitem__, 1, 8)
1413 self.assertRaises(OverflowError, nd.__setitem__, 1<<64, 8)
1417 self.assertRaises(IndexError, mv.__setitem__, 1<<64, 8)
1422 self.assertRaises(struct.error, nd.__setitem__, 2, 300)
1423 self.assertRaises(ValueError, nd.__setitem__, 1, (100, 200))
1426 self.assertRaises(ValueError, mv.__setitem__, 2, 300)
1427 self.assertRaises(TypeError, mv.__setitem__, 1, (100, 200))
1431 self.assertRaises(ValueError, nd.__setitem__, 2, 300)
1432 self.assertRaises(struct.error, nd.__setitem__, 1, (b'\x001', 200))
1448 self.assertRaises(TypeError, nd.__setitem__, 0, 8)
1449 self.assertRaises(TypeError, mv.__setitem__, 0, 8)
1526 self.assertRaises(IndexError, nd.__setitem__, -6, single_item)
1527 self.assertRaises(IndexError, nd.__setitem__, 5, single_item)
1540 self.assertRaises(IndexError, mv.__setitem__, -6, single_item)
1541 self.assertRaises(IndexError, mv.__setitem__, 5, single_item)
1619 self.assertRaises(TypeError, xl.__setitem__, slice(0,8,1), items)
1620 self.assertRaises(TypeError, ml.__setitem__, slice(0,8,1), items)
1626 self.assertRaises(BufferError, xl.__setitem__, slice(0,8,1), xr)
1655 self.assertRaises(ValueError, xl.__setitem__, slice(0,1,1), xr[7:8])
1657 self.assertRaises(ValueError, ml.__setitem__, slice(0,1,1), mr[7:8])
1665 self.assertRaises(ValueError, xl.__setitem__, slice(0,1,1), xr[7:8])
1667 self.assertRaises(ValueError, ml.__setitem__, slice(0,1,1), mr[7:8])
1675 self.assertRaises(ValueError, xl.__setitem__, slice(0,1,1), xr[7:8])
1677 self.assertRaises(NotImplementedError, ml.__setitem__, slice(0,1,1),
1685 self.assertRaises(ValueError, xl.__setitem__, slice(0,2,1), xr[7:8])
1687 self.assertRaises(ValueError, ml.__setitem__, slice(0,2,1), mr[7:8])
2636 self.assertRaises(NotImplementedError, m.__setitem__, 0, 8)
2959 self.assertRaises(TypeError, m.__setitem__, 0, 24.7)
2964 self.assertRaises(TypeError, m.__setitem__, 2, 10)
2970 self.assertRaises(IndexError, m.__setitem__, 2**64, 9)
2971 self.assertRaises(TypeError, m.__setitem__, 2.0, 10)
2972 self.assertRaises(TypeError, m.__setitem__, 0.0, 11)
2975 self.assertRaises(IndexError, m.__setitem__, -8, 20)
2976 self.assertRaises(IndexError, m.__setitem__, 8, 25)
3004 self.assertRaises(TypeError, m.__setitem__, 0, 100)
3019 self.assertRaises(ValueError, m2.__setitem__, 0, lo-1)
3020 self.assertRaises(TypeError, m2.__setitem__, 0, "xyz")
3021 self.assertRaises(ValueError, m2.__setitem__, 0, hi)
3025 self.assertRaises(ValueError, m2.__setitem__, 0, b'\xff\xff')
3030 self.assertRaises(NotImplementedError, m.__setitem__, 0, 1)
3034 self.assertRaises(NotImplementedError, m.__setitem__, 0, 1)
3050 self.assertRaises(IndexError, m.__setitem__, (2**64, 0), 0)
3051 self.assertRaises(IndexError, m.__setitem__, (0, 2**64), 0)
3053 self.assertRaises(TypeError, m.__setitem__, (0, 0, 0), 0)
3054 self.assertRaises(TypeError, m.__setitem__, (0.0, 0.0), 0)
3057 self.assertRaises(NotImplementedError, m.__setitem__, 0, [2, 3])
3066 self.assertRaises(ValueError, m.__setitem__, slice(0,2,0),
3078 self.assertRaises(NotImplementedError, m.__setitem__,
3083 self.assertRaises(TypeError, m.__setitem__, (slice(0,2,1), {}),
3087 self.assertRaises(TypeError, m.__setitem__, slice(0,1,1), [1])
3909 self.assertRaises(ValueError, m.__setitem__, 0, 1)
4033 self.assertRaises(TypeError, m.__setitem__, 1, 20)
4042 self.assertRaises(TypeError, m.__setitem__, 1, 20)