          ul[:2] = [60, 70, 80]
  
          def setfcn(x, i, v):
              x[i] = v
          self.assertRaises(TypeError, setfcn, ul, 2, 'hello')
          self.assertRaises(TypeError, setfcn, ul, slice(0, 3, 2), ('hello', 'goodbye'))
  
      def test08_min_length(self):
          'Length limits'
          pl, ul = self.lists_of_len(5)
          ul._minlength = 3
 
</s> remove         self.assertRaises(TypeError, setfcn, ul, slice(0, 3, 2), 2)
 </s> add         with self.assertRaises(TypeError):
            setfcn(ul, slice(0, 3, 2), 2) </s> remove                             self.assertRaises(ValueError, setfcn, ul, i, j, k, sliceLen - 1)
 </s> add                             with self.assertRaises(ValueError):
                                setfcn(ul, i, j, k, sliceLen - 1) </s> remove         self.assertRaises(ValueError, indexfcn, ul, 40)
        self.assertRaises(ValueError, removefcn, ul, 40)
 </s> add         with self.assertRaises(ValueError):
            indexfcn(ul, 40)
        with self.assertRaises(ValueError):
            removefcn(ul, 40) </s> remove             self.assertRaises(ValueError, delfcn, ul, i)
            self.assertRaises(ValueError, setfcn, ul, i)
 </s> add             with self.assertRaises(ValueError):
                delfcn(ul, i)
            with self.assertRaises(ValueError):
                setfcn(ul, i) </s> remove                         self.assertRaises(ValueError, setfcn, ul, i, j, k, sliceLen + 1)
 </s> add                         with self.assertRaises(ValueError):
                            setfcn(ul, i, j, k, sliceLen + 1)
        with self.assertRaises(TypeError):
            setfcn(ul, 2, 'hello')
        with self.assertRaises(TypeError):
            setfcn(ul, slice(0, 3, 2), ('hello', 'goodbye'))
          ul[:2] = [60, 70, 80]
  
          def setfcn(x, i, v):
              x[i] = v
        with self.assertRaises(TypeError):
            setfcn(ul, 2, 'hello')
        with self.assertRaises(TypeError):
            setfcn(ul, slice(0, 3, 2), ('hello', 'goodbye'))
        with self.assertRaises(TypeError):
            setfcn(ul, 2, 'hello')
        with self.assertRaises(TypeError):
            setfcn(ul, slice(0, 3, 2), ('hello', 'goodbye'))
  
      def test08_min_length(self):
          'Length limits'
          pl, ul = self.lists_of_len(5)
          ul._minlength = 3
keep keep keep keep replace replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/gis_tests/geos_tests/test_mutable_list.py