Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a brittle test case that was failing on PostGIS versions < 1.4.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ef65854a77493bc3be8056cfcf149ccc37409097 1 parent 36fe303
@jbronn jbronn authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/contrib/gis/tests/geoapp/
4 django/contrib/gis/tests/geoapp/
@@ -33,4 +33,6 @@ def test03_extent(self):
"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)
Please sign in to comment.
Something went wrong with that request. Please try again.