              self.assertEqual(ref, geom)
  
          bad_input = (1, 5.23, None, False)
          for bad_wkb in bad_input:
              self.assertRaises(TypeError, wkb_r.read, bad_wkb)
  
      def test04_wkbwriter(self):
          wkb_w = WKBWriter()
  
          # Representations of 'POINT (5 23)' in hex -- one normal and
 
</s> remove         self.assertRaises(TypeError, wkt_r.read, 1)
        self.assertRaises(TypeError, wkt_r.read, memoryview(b'foo'))
 </s> add         with self.assertRaises(TypeError):
            wkt_r.read(1)
        with self.assertRaises(TypeError):
            wkt_r.read(memoryview(b'foo')) </s> remove         self.assertRaises(TypeError, wkt_w._set_ptr, WKTReader.ptr_type())
 </s> add         with self.assertRaises(TypeError):
            wkt_w._set_ptr(WKTReader.ptr_type()) </s> remove         self.assertRaises(ValueError, qs.aggregate, Union('name'))
 </s> add         with self.assertRaises(ValueError):
            qs.aggregate(Union('name')) </s> remove             self.assertRaises(ValueError, http.base36_to_int, n)
 </s> add             with self.assertRaises(ValueError):
                http.base36_to_int(n) </s> remove             self.assertRaises(ValidationError, fld.clean, bad_default)
 </s> add             with self.assertRaises(ValidationError):
                fld.clean(bad_default)
            with self.assertRaises(TypeError):
                wkb_r.read(bad_wkb)
              self.assertEqual(ref, geom)
  
          bad_input = (1, 5.23, None, False)
          for bad_wkb in bad_input:
            with self.assertRaises(TypeError):
                wkb_r.read(bad_wkb)
  
      def test04_wkbwriter(self):
          wkb_w = WKBWriter()
  
          # Representations of 'POINT (5 23)' in hex -- one normal and
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_io.py