Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed brittle test case for `GEOSGeometry.valid_reason`.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0b2fef5dd350c472f7d76fc4c85a47f3bd8ccc75 1 parent 6c85a44
Justin Bronn authored November 06, 2010
2  django/contrib/gis/geos/tests/test_geos.py
@@ -934,7 +934,7 @@ def test27_valid_reason(self):
934 934
 
935 935
         self.assert_(not g.valid)
936 936
         self.assert_(isinstance(g.valid_reason, basestring))
937  
-        self.assertEqual(g.valid_reason, "Too few points in geometry component[0 0]")
  937
+        self.assert_(g.valid_reason.startswith("Too few points in geometry component"))
938 938
 
939 939
         print "\nEND - expecting GEOS_NOTICE; safe to ignore.\n"
940 940
 

0 notes on commit 0b2fef5

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