diff options
Diffstat (limited to 'tests/gis_tests/geoapp/tests.py')
| -rw-r--r-- | tests/gis_tests/geoapp/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gis_tests/geoapp/tests.py b/tests/gis_tests/geoapp/tests.py index f9838b461b..52a172792a 100644 --- a/tests/gis_tests/geoapp/tests.py +++ b/tests/gis_tests/geoapp/tests.py @@ -8,7 +8,7 @@ from django.contrib.gis.geos import ( MultiPoint, MultiPolygon, Point, Polygon, fromstr, ) from django.core.management import call_command -from django.db import connection +from django.db import NotSupportedError, connection from django.test import TestCase, skipUnlessDBFeature from ..utils import ( @@ -516,7 +516,7 @@ class GeoQuerySetTest(TestCase): Testing the `MakeLine` aggregate. """ if not connection.features.supports_make_line_aggr: - with self.assertRaises(NotImplementedError): + with self.assertRaises(NotSupportedError): City.objects.all().aggregate(MakeLine('point')) return |
