summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-11-17 14:17:08 +0100
committerClaude Paroz <claude@2xlibre.net>2014-11-17 14:17:08 +0100
commitfc3643743456e98ceb902ee1e48c1bc5f56034cf (patch)
tree9d702b42908347e64630913c6a5583f48615eea6
parent684b2077b3a6d3fb99365e402ce8205bf54c6efd (diff)
Added assertion error message for test_make_line
Refs #23842. Thanks Thomas Chaumeny for the suggestion.
-rw-r--r--django/contrib/gis/tests/geoapp/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/django/contrib/gis/tests/geoapp/tests.py b/django/contrib/gis/tests/geoapp/tests.py
index b9e7a58b70..1e1b77080a 100644
--- a/django/contrib/gis/tests/geoapp/tests.py
+++ b/django/contrib/gis/tests/geoapp/tests.py
@@ -629,7 +629,9 @@ class GeoQuerySetTest(TestCase):
)
# We check for equality with a tolerance of 10e-5 which is a lower bound
# of the precisions of ref_line coordinates
- self.assertTrue(ref_line.equals_exact(City.objects.make_line(), tolerance=10e-5))
+ line = City.objects.make_line()
+ self.assertTrue(ref_line.equals_exact(line, tolerance=10e-5),
+ "%s != %s" % (ref_line, line))
@skipUnlessDBFeature("has_num_geom_method")
def test_num_geom(self):