summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-09-23 20:47:08 -0400
committerTim Graham <timograham@gmail.com>2014-09-23 20:47:08 -0400
commita1709220d527385378e128949da4140709758d00 (patch)
treed681d1cf1f76bb8632930e699f872c918a7fa445
parent729cd6a11a6f14b56bfc2551834b4e0892142b12 (diff)
Added an Oracle workaround for a geogapp test; refs #23504.
-rw-r--r--django/contrib/gis/tests/geogapp/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/gis/tests/geogapp/tests.py b/django/contrib/gis/tests/geogapp/tests.py
index 59851c35a0..607b1175e7 100644
--- a/django/contrib/gis/tests/geogapp/tests.py
+++ b/django/contrib/gis/tests/geogapp/tests.py
@@ -9,7 +9,7 @@ from unittest import skipUnless
from django.contrib.gis.gdal import HAS_GDAL
from django.contrib.gis.geos import HAS_GEOS
from django.contrib.gis.measure import D
-from django.contrib.gis.tests.utils import postgis
+from django.contrib.gis.tests.utils import oracle, postgis
from django.test import TestCase, skipUnlessDBFeature
from django.utils._os import upath
@@ -96,7 +96,7 @@ class GeographyTest(TestCase):
def test06_geography_area(self):
"Testing that Area calculations work on geography columns."
# SELECT ST_Area(poly) FROM geogapp_zipcode WHERE code='77002';
- ref_area = 5439084.70637573
+ ref_area = 5439100.95415646 if oracle else 5439084.70637573
tol = 5
z = Zipcode.objects.area().get(code='77002')
self.assertAlmostEqual(z.area.sq_m, ref_area, tol)