mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
36fe303e35
commit
ef65854a77
|
@ -33,4 +33,6 @@ class GeoRegressionTests(unittest.TestCase):
|
||||||
"Testing `extent` on a table with a single point, see #11827."
|
"Testing `extent` on a table with a single point, see #11827."
|
||||||
pnt = City.objects.get(name='Pueblo').point
|
pnt = City.objects.get(name='Pueblo').point
|
||||||
ref_ext = (pnt.x, pnt.y, pnt.x, pnt.y)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue