diff options
| author | Justin Bronn <jbronn@gmail.com> | 2012-10-09 17:20:51 -0700 |
|---|---|---|
| committer | Justin Bronn <jbronn@gmail.com> | 2012-10-09 17:20:51 -0700 |
| commit | f578ee32fa41b7d2b3308d98e9d528ab4853a720 (patch) | |
| tree | 44ef76cf7b84f6516e8b0fc103b8c034a1ee9edc | |
| parent | 32ac067a6ddca465cd94fc7ee35bfe54a675979b (diff) | |
Mark the test for left/right lookup types as a known failure on PostGIS 2.0.
| -rw-r--r-- | django/contrib/gis/tests/geoapp/tests.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/django/contrib/gis/tests/geoapp/tests.py b/django/contrib/gis/tests/geoapp/tests.py index f94d716b34..3ae8876471 100644 --- a/django/contrib/gis/tests/geoapp/tests.py +++ b/django/contrib/gis/tests/geoapp/tests.py @@ -11,7 +11,7 @@ from django.contrib.gis.tests.utils import ( no_mysql, no_oracle, no_spatialite, mysql, oracle, postgis, spatialite) from django.test import TestCase -from django.utils import six +from django.utils import six, unittest from .models import Country, City, PennsylvaniaCity, State, Track @@ -295,6 +295,13 @@ class GeoLookupTest(TestCase): self.assertEqual(2, len(qs)) for c in qs: self.assertEqual(True, c.name in cities) + # The left/right lookup tests are known failures on PostGIS 2.0+ + # until the following bug is fixed: + # http://trac.osgeo.org/postgis/ticket/2035 + # TODO: Ensure fixed in 2.0.2, else modify upper bound for version here. + if (2, 0, 0) <= connection.ops.spatial_version <= (2, 0, 1): + test_left_right_lookups = unittest.expectedFailure(test_left_right_lookups) + def test_equals_lookups(self): "Testing the 'same_as' and 'equals' lookup types." pnt = fromstr('POINT (-95.363151 29.763374)', srid=4326) |
