Author: jbronn
Date: 2011-09-09 12:51:06 -0700 (Fri, 09 Sep 2011)
New Revision: 16741
Modified:
django/trunk/django/contrib/gis/tests/layermap/tests.py
Log:
Fixed a brittle test in the `LayerMapping` tests.
Modified: django/trunk/django/contrib/gis/tests/layermap/tests.py
===================================================================
--- django/trunk/django/contrib/gis/tests/layermap/tests.py 2011-09-09
19:33:40 UTC (rev 16740)
+++ django/trunk/django/contrib/gis/tests/layermap/tests.py 2011-09-09
19:51:06 UTC (rev 16741)
@@ -79,8 +79,8 @@
# Comparing the geometries.
pnt1, pnt2 = feat.geom, city.point
- self.assertAlmostEqual(pnt1.x, pnt2.x, 6)
- self.assertAlmostEqual(pnt1.y, pnt2.y, 6)
+ self.assertAlmostEqual(pnt1.x, pnt2.x, 5)
+ self.assertAlmostEqual(pnt1.y, pnt2.y, 5)
def test03_layermap_strict(self):
"Testing the `strict` keyword, and import of a LineString shapefile."
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.