Author: mtredinnick
Date: 2009-04-03 22:20:39 -0500 (Fri, 03 Apr 2009)
New Revision: 10381

Modified:
   django/trunk/django/contrib/gis/geos/tests/test_io.py
Log:
Tweaked a GIS expected test failure.

The test was only checking for geos version 3.0.0, but it failed for all
3.0.x versions. This change makes the version check skip the test for
anything 3.0-ish.

Modified: django/trunk/django/contrib/gis/geos/tests/test_io.py
===================================================================
--- django/trunk/django/contrib/gis/geos/tests/test_io.py       2009-04-03 
20:53:50 UTC (rev 10380)
+++ django/trunk/django/contrib/gis/geos/tests/test_io.py       2009-04-04 
03:20:39 UTC (rev 10381)
@@ -91,7 +91,7 @@
 
         # These tests will fail on 3.0.0 because of a bug that was fixed in 
3.1:
         # http://trac.osgeo.org/geos/ticket/216
-        if not geos_version_info()['version'] == '3.0.0':
+        if not geos_version_info()['version'].startswith('3.0.'):
             # Now setting the output dimensions to be 3
             wkb_w.outdim = 3
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to