Author: jbronn
Date: 2010-03-29 11:41:29 -0500 (Mon, 29 Mar 2010)
New Revision: 12876

Modified:
   
django/branches/releases/1.1.X/django/contrib/gis/tests/geoapp/test_regress.py
Log:
[1.1.X] Fixed a brittle test case that was failing on PostGIS versions < 1.4.

Backport of r11729 from trunk.


Modified: 
django/branches/releases/1.1.X/django/contrib/gis/tests/geoapp/test_regress.py
===================================================================
--- 
django/branches/releases/1.1.X/django/contrib/gis/tests/geoapp/test_regress.py  
    2010-03-29 08:14:57 UTC (rev 12875)
+++ 
django/branches/releases/1.1.X/django/contrib/gis/tests/geoapp/test_regress.py  
    2010-03-29 16:41:29 UTC (rev 12876)
@@ -33,4 +33,6 @@
         "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)

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to