Skip to content
Browse files

Fixed brittle test case for `GEOSGeometry.valid_reason`.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 6c85a44 commit 0b2fef5dd350c472f7d76fc4c85a47f3bd8ccc75 @jbronn jbronn committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/gis/geos/tests/
2 django/contrib/gis/geos/tests/
@@ -934,7 +934,7 @@ def test27_valid_reason(self):
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"

0 comments on commit 0b2fef5

Please sign in to comment.
Something went wrong with that request. Please try again.