From ef65854a77493bc3be8056cfcf149ccc37409097 Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Tue, 10 Nov 2009 03:51:05 +0000 Subject: [PATCH] Fixed a brittle test case that was failing on PostGIS versions < 1.4. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11729 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/gis/tests/geoapp/test_regress.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/django/contrib/gis/tests/geoapp/test_regress.py b/django/contrib/gis/tests/geoapp/test_regress.py index e2500308bb8..7efa4e6206f 100644 --- a/django/contrib/gis/tests/geoapp/test_regress.py +++ b/django/contrib/gis/tests/geoapp/test_regress.py @@ -33,4 +33,6 @@ class GeoRegressionTests(unittest.TestCase): "Testing `extent` on a table with a single point, see #11827." pnt = City.objects.get(name='Pueblo').point ref_ext = (pnt.x, pnt.y, pnt.x, pnt.y) - self.assertEqual(ref_ext, City.objects.filter(name='Pueblo').extent()) + extent = City.objects.filter(name='Pueblo').extent() + for ref_val, val in zip(ref_ext, extent): + self.assertAlmostEqual(ref_val, val, 4)