diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-04-15 19:36:44 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-04-15 19:38:24 +0200 |
| commit | 1628dfd0b9200f709e4f174cb39b8fd398ad5d7d (patch) | |
| tree | 95e0847d128ac11b937d9fdf3d03b031b94b9f34 | |
| parent | bfb2504402ea80962f457cb042d9fef21439feb9 (diff) | |
Properly used test skipping in OGRInspectTest TestCase
| -rw-r--r-- | django/contrib/gis/tests/inspectapp/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/gis/tests/inspectapp/tests.py b/django/contrib/gis/tests/inspectapp/tests.py index 549587d5a7..538542f9a2 100644 --- a/django/contrib/gis/tests/inspectapp/tests.py +++ b/django/contrib/gis/tests/inspectapp/tests.py @@ -56,15 +56,15 @@ class OGRInspectTest(TestCase): # 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', layer_key=AllOGRFields._meta.db_table, |
