Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.1.X] Fixed a brittle test case that was failing on PostGIS version…

…s < 1.4.

Backport of r11729 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 127d46e6a59ea2c050151c4ea923dfb465746f67 1 parent 434b5d5
Justin Bronn authored
4  django/contrib/gis/tests/geoapp/test_regress.py
@@ -33,4 +33,6 @@ def test03_extent(self):
33 33
         "Testing `extent` on a table with a single point, see #11827."
34 34
         pnt = City.objects.get(name='Pueblo').point
35 35
         ref_ext = (pnt.x, pnt.y, pnt.x, pnt.y)
36  
-        self.assertEqual(ref_ext, City.objects.filter(name='Pueblo').extent())
  36
+        extent = City.objects.filter(name='Pueblo').extent()
  37
+        for ref_val, val in zip(ref_ext, extent):
  38
+            self.assertAlmostEqual(ref_val, val, 4)

0 notes on commit 127d46e

Please sign in to comment.
Something went wrong with that request. Please try again.