Skip to content

Commit

Permalink
Fixed brittle test case for GEOSGeometry.valid_reason.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jbronn committed Nov 6, 2010
1 parent 6c85a44 commit 0b2fef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/gis/geos/tests/test_geos.py
Expand Up @@ -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"

Expand Down

0 comments on commit 0b2fef5

Please sign in to comment.