From 0b2fef5dd350c472f7d76fc4c85a47f3bd8ccc75 Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Sat, 6 Nov 2010 16:41:53 +0000 Subject: [PATCH] Fixed brittle test case for `GEOSGeometry.valid_reason`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14476 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/gis/geos/tests/test_geos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/gis/geos/tests/test_geos.py b/django/contrib/gis/geos/tests/test_geos.py index 421e8c5f5e..c610093329 100644 --- a/django/contrib/gis/geos/tests/test_geos.py +++ b/django/contrib/gis/geos/tests/test_geos.py @@ -934,7 +934,7 @@ class GEOSTest(unittest.TestCase, TestDataMixin): self.assert_(not g.valid) self.assert_(isinstance(g.valid_reason, basestring)) - self.assertEqual(g.valid_reason, "Too few points in geometry component[0 0]") + self.assert_(g.valid_reason.startswith("Too few points in geometry component")) print "\nEND - expecting GEOS_NOTICE; safe to ignore.\n"