Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed conditional skipping of test for left/right lookup types.

connection.ops.spatial_version is None for some backends (eg. MySQL) and
the comparison fails on Python 3 with TypeError.
  • Loading branch information...
commit 1906cb93609ce6042f97939a04067a122f5719a6 1 parent a53d7a0
Aymeric Augustin aaugustin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/gis/tests/geoapp/tests.py
2  django/contrib/gis/tests/geoapp/tests.py
View
@@ -297,7 +297,7 @@ def test_left_right_lookups(self):
# The left/right lookup tests are known failures on PostGIS 2.0/2.0.1
# http://trac.osgeo.org/postgis/ticket/2035
- if (2, 0, 0) <= connection.ops.spatial_version <= (2, 0, 1):
+ if connection.ops.postgis and (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):
Please sign in to comment.
Something went wrong with that request. Please try again.