Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit b55de81b9e4d820a223c066022050a0df0ee1dd0 1 parent a5152bb
@akaariai akaariai authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.