summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-11-25 08:13:15 -0500
committerTim Graham <timograham@gmail.com>2015-11-25 08:13:15 -0500
commit5657000bfe43c58cbd4873e53c1b18b604cff996 (patch)
tree055377d03faa19db25a1401eb1ae627fabfa953a
parent2e2e099a73e728a2bfddc918d9acf473b3a86eef (diff)
[1.9.x] Refs #25438 -- Fixed two geoapp test failures on Oracle.
-rw-r--r--tests/gis_tests/geoapp/test_functions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py
index 1b6431bbef..57fa5189fc 100644
--- a/tests/gis_tests/geoapp/test_functions.py
+++ b/tests/gis_tests/geoapp/test_functions.py
@@ -177,7 +177,7 @@ class GISFunctionsTests(TestCase):
qs = qs.exclude(name='Texas')
for c in qs:
- self.assertEqual(c.mpoly.difference(geom), c.diff)
+ self.assertTrue(c.mpoly.difference(geom).equals(c.diff))
@skipUnlessDBFeature("has_Difference_function")
def test_difference_mixed_srid(self):
@@ -188,7 +188,7 @@ class GISFunctionsTests(TestCase):
if spatialite or oracle:
qs = qs.exclude(name='Texas')
for c in qs:
- self.assertEqual(c.mpoly.difference(geom), c.difference)
+ self.assertTrue(c.mpoly.difference(geom).equals(c.difference))
@skipUnlessDBFeature("has_Envelope_function")
def test_envelope(self):