From a1709220d527385378e128949da4140709758d00 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 23 Sep 2014 20:47:08 -0400 Subject: [PATCH] Added an Oracle workaround for a geogapp test; refs #23504. --- django/contrib/gis/tests/geogapp/tests.py | 4 ++-- 1 file 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)