From 5657000bfe43c58cbd4873e53c1b18b604cff996 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 25 Nov 2015 08:13:15 -0500 Subject: [PATCH] [1.9.x] Refs #25438 -- Fixed two geoapp test failures on Oracle. --- tests/gis_tests/geoapp/test_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py index 1b6431bbef7..57fa5189fc1 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):