  
          ul._maxlength = 4
          for i in range(0, ul._maxlength - len(ul)):
              ul.append(i)
          self.assertRaises(ValueError, ul.append, 10)
  
      def test09_iterable_check(self):
          'Error on assigning non-iterable to slice'
          pl, ul = self.lists_of_len(self.limit + 1)
  
 
</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(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(IndexError, ul._checkindex, i)
 </s> add             with self.assertRaises(IndexError):
                ul._checkindex(i) </s> remove         self.assertRaises(IndexError, popfcn, ul, self.limit)
        self.assertRaises(IndexError, popfcn, ul, -1 - self.limit)
 </s> add         with self.assertRaises(IndexError):
            popfcn(ul, self.limit)
        with self.assertRaises(IndexError):
            popfcn(ul, -1 - self.limit) </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(ValueError):
            ul.append(10)
  
          ul._maxlength = 4
          for i in range(0, ul._maxlength - len(ul)):
              ul.append(i)
        with self.assertRaises(ValueError):
            ul.append(10)
  
      def test09_iterable_check(self):
          'Error on assigning non-iterable to slice'
          pl, ul = self.lists_of_len(self.limit + 1)
  
keep keep keep keep 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