Skip to content

Commit

Permalink
Tweaked a GIS expected test failure.
Browse files Browse the repository at this point in the history
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.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10381 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Apr 4, 2009
1 parent ffffded commit 19d1450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/gis/geos/tests/test_io.py
Expand Up @@ -91,7 +91,7 @@ def test04_wkbwriter(self):

# 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

Expand Down

0 comments on commit 19d1450

Please sign in to comment.