diff options
| author | Justin Bronn <jbronn@gmail.com> | 2010-03-29 16:41:29 +0000 |
|---|---|---|
| committer | Justin Bronn <jbronn@gmail.com> | 2010-03-29 16:41:29 +0000 |
| commit | 127d46e6a59ea2c050151c4ea923dfb465746f67 (patch) | |
| tree | 0cbcd291d6bddd4dee64309a7fa98417a2d041f9 | |
| parent | 434b5d5cf6ea214e7115e6a794fe509b74e5fc12 (diff) | |
[1.1.X] Fixed a brittle test case that was failing on PostGIS versions < 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
| -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) |
