Browse files

Properly used test skipping in OGRInspectTest TestCase

  • Loading branch information...
1 parent bfb2504 commit 1628dfd0b9200f709e4f174cb39b8fd398ad5d7d @claudep claudep committed Apr 15, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/contrib/gis/tests/inspectapp/
6 django/contrib/gis/tests/inspectapp/
@@ -56,15 +56,15 @@ def test_time_field(self):
# complains about permissions, and SpatiaLite/Oracle are
# insanely difficult to get support compiled in for in GDAL.
if not connections['default'].ops.postgis:
- return
+ self.skipTest("This database does not support 'ogrinspect'ion")
# Getting the database identifier used by OGR, if None returned
# GDAL does not have the support compiled in.
ogr_db = get_ogr_db_string()
if not ogr_db:
- return
+ self.skipTest("Your GDAL installation does not support PostGIS databases")
- # writing shapefules via GDAL currently does not support writing OGRTime
+ # Writing shapefiles via GDAL currently does not support writing OGRTime
# fields, so we need to actually use a database
model_def = ogrinspect(ogr_db, 'Measurement',

0 comments on commit 1628dfd

Please sign in to comment.