          # to PostGIS geography types.  For more information, visit:
          # http://postgis.refractions.net/documentation/manual-1.5/ch08.html#PostGIS_GeographyFunctions
          z = Zipcode.objects.get(code='77002')
          # ST_Within not available.
          self.assertRaises(ValueError, City.objects.filter(point__within=z.poly).count)
          # `@` operator not available.
          self.assertRaises(ValueError, City.objects.filter(point__contained=z.poly).count)
  
          # Regression test for #14060, `~=` was never really implemented for PostGIS.
          htown = City.objects.get(name='Houston')
 
</s> remove         self.assertRaises(ValueError, City.objects.filter(point__contained=z.poly).count)
 </s> add         with self.assertRaises(ValueError):
            City.objects.filter(point__contained=z.poly).count() </s> remove         self.assertRaises(ValueError, City.objects.get, point__exact=htown.point)
 </s> add         with self.assertRaises(ValueError):
            City.objects.get(point__exact=htown.point) </s> remove             self.assertRaises(ValueError, wkb_w._set_byteorder, bad_byteorder)
 </s> add             with self.assertRaises(ValueError):
                wkb_w._set_byteorder(bad_byteorder) </s> remove             self.assertRaises(ValueError, wkb_w._set_outdim, bad_outdim)
 </s> add             with self.assertRaises(ValueError):
                wkb_w._set_outdim(bad_outdim) </s> remove         self.assertRaises(ValueError, d.save)
        # ValueError: MySQL backend does not support timezone-aware datetimes.
 </s> add         # MySQL backend does not support timezone-aware datetimes.
        with self.assertRaises(ValueError):
            d.save()
        with self.assertRaises(ValueError):
            City.objects.filter(point__within=z.poly).count()
          # to PostGIS geography types.  For more information, visit:
          # http://postgis.refractions.net/documentation/manual-1.5/ch08.html#PostGIS_GeographyFunctions
          z = Zipcode.objects.get(code='77002')
          # ST_Within not available.
        with self.assertRaises(ValueError):
            City.objects.filter(point__within=z.poly).count()
          # `@` operator not available.
          self.assertRaises(ValueError, City.objects.filter(point__contained=z.poly).count)
  
          # Regression test for #14060, `~=` was never really implemented for PostGIS.
          htown = City.objects.get(name='Houston')
keep keep keep keep replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/gis_tests/geogapp/tests.py