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.
This commit is contained in:
parent
a53d7a0a50
commit
1906cb9360
|
@ -297,7 +297,7 @@ class GeoLookupTest(TestCase):
|
||||||
|
|
||||||
# The left/right lookup tests are known failures on PostGIS 2.0/2.0.1
|
# The left/right lookup tests are known failures on PostGIS 2.0/2.0.1
|
||||||
# http://trac.osgeo.org/postgis/ticket/2035
|
# 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)
|
test_left_right_lookups = unittest.expectedFailure(test_left_right_lookups)
|
||||||
|
|
||||||
def test_equals_lookups(self):
|
def test_equals_lookups(self):
|
||||||
|
|
Loading…
Reference in New Issue