Skip to content
Browse files

Executed SpatialRefSysTest only with spatial backend

  • Loading branch information...
1 parent 88601ba commit 023b70415b689f18115b7bf3842ed6d57c90fa8d @claudep claudep committed Jun 14, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 django/contrib/gis/tests/
6 django/contrib/gis/tests/
@@ -28,14 +28,18 @@
if oracle:
from import SpatialRefSys
elif postgis:
from django.contrib.gis.db.backends.postgis.models import SpatialRefSys
elif spatialite:
from django.contrib.gis.db.backends.spatialite.models import SpatialRefSys
-@unittest.skipUnless(HAS_GDAL, "SpatialRefSysTest needs gdal support")
+@unittest.skipUnless(HAS_GDAL and HAS_SPATIALREFSYS,
+ "SpatialRefSysTest needs gdal support and a spatial database")
class SpatialRefSysTest(unittest.TestCase):

0 comments on commit 023b704

Please sign in to comment.
Something went wrong with that request. Please try again.