mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed brittle test case for GEOSGeometry.valid_reason
.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6c85a44416
commit
0b2fef5dd3
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue