Permalink
Browse files

Ensured gis tests aren't run on non-gis Oracle

  • Loading branch information...
1 parent a5152bb commit b55de81b9e4d820a223c066022050a0df0ee1dd0 @akaariai akaariai committed Oct 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/gis/tests/utils.py
View
2 django/contrib/gis/tests/utils.py
@@ -26,7 +26,7 @@ def no_spatialite(func): return no_backend(func, 'spatialite')
spatialite = _default_db == 'spatialite'
HAS_SPATIALREFSYS = True
-if oracle:
+if oracle and 'gis' in settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE']:
from django.contrib.gis.db.backends.oracle.models import SpatialRefSys
elif postgis:
from django.contrib.gis.db.backends.postgis.models import SpatialRefSys

0 comments on commit b55de81

Please sign in to comment.