diff options
| author | Justin Bronn <jbronn@gmail.com> | 2009-11-10 03:51:05 +0000 |
|---|---|---|
| committer | Justin Bronn <jbronn@gmail.com> | 2009-11-10 03:51:05 +0000 |
| commit | ef65854a77493bc3be8056cfcf149ccc37409097 (patch) | |
| tree | 7b19db16f08af71cdd55374c8e6336a321999f44 | |
| parent | 36fe303e359bcb33a54d8a5fc8dea8b26df96c70 (diff) | |
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
| -rw-r--r-- | django/contrib/gis/tests/geoapp/test_regress.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/django/contrib/gis/tests/geoapp/test_regress.py b/django/contrib/gis/tests/geoapp/test_regress.py index e2500308bb..7efa4e6206 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) |
