              self.assertFalse(GeometryForm(data={'g': invalid.wkt}).is_valid())
  
  
  class OSMWidgetTest(SimpleTestCase):
      def setUp(self):
          self.geometries = {
              'point': GEOSGeometry("SRID=4326;POINT(9.052734375 42.451171875)"),
          }
  
 
</s> remove     @skipUnless(HAS_GDAL and HAS_SPATIALREFSYS,
                "test_osm_widget needs gdal support and a spatial database")
 </s> add  </s> remove from django.contrib.gis.geos import GEOSGeometry
 </s> add  </s> remove from django.contrib.gis import forms
 </s> add 
@skipUnless(HAS_GDAL and HAS_SPATIALREFSYS,
    "OSMWidgetTest needs gdal support and a spatial database")
              self.assertFalse(GeometryForm(data={'g': invalid.wkt}).is_valid())
  
  
@skipUnless(HAS_GDAL and HAS_SPATIALREFSYS,
    "OSMWidgetTest needs gdal support and a spatial database")
  class OSMWidgetTest(SimpleTestCase):
      def setUp(self):
          self.geometries = {
              'point': GEOSGeometry("SRID=4326;POINT(9.052734375 42.451171875)"),
          }
  
keep keep add keep keep keep keep keep keep
 Revert "Allowed running GIS form tests that don't require spatial database"

This reverts commit 07fe0bf3f4a49a734f83f5ea30130449dacf9660.
This was not working properly on system without geos library
installed. 
django/contrib/gis/tests/test_geoforms.py