Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mark the test for left/right lookup types as a known failure on PostG…

…IS 2.0.
  • Loading branch information...
commit f578ee32fa41b7d2b3308d98e9d528ab4853a720 1 parent 32ac067
Justin Bronn jbronn authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 django/contrib/gis/tests/geoapp/tests.py
9 django/contrib/gis/tests/geoapp/tests.py
View
@@ -11,7 +11,7 @@
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 @@ def test_left_right_lookups(self):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.