summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronn <jbronn@gmail.com>2010-11-06 16:41:53 +0000
committerJustin Bronn <jbronn@gmail.com>2010-11-06 16:41:53 +0000
commit0b2fef5dd350c472f7d76fc4c85a47f3bd8ccc75 (patch)
tree3677138c2103de48fcae622af2ccb1ea467bc08f
parent6c85a44416c1a18c2f5a773752ed403d2f23de99 (diff)
Fixed brittle test case for `GEOSGeometry.valid_reason`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/gis/geos/tests/test_geos.py2
1 files changed, 1 insertions, 1 deletions
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"