summaryrefslogtreecommitdiff
path: root/tests/gis_tests/geoapp/tests.py
diff options
context:
space:
mode:
authorSimon Charette <charettes@users.noreply.github.com>2017-10-06 12:47:08 -0400
committerTim Graham <timograham@gmail.com>2017-10-06 12:47:08 -0400
commit9d93dff33338c90a55f7158fbbe0d82e88e13fa3 (patch)
treee82f2500e84877ddf0aa303a0756cf01cf8e6a1f /tests/gis_tests/geoapp/tests.py
parent7d8d630e37209eba672d5382cc2effe192ab2510 (diff)
Fixed #28665 -- Change some database exceptions to NotImplementedError per PEP 249.
Diffstat (limited to 'tests/gis_tests/geoapp/tests.py')
-rw-r--r--tests/gis_tests/geoapp/tests.py4
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