summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-03-05 08:55:34 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-03-05 08:57:26 +0100
commitc669cf279ae7b3e02a61db4fb077030a4db80e4f (patch)
tree6b3bec12349d267f2b15c33ac9034357aa3a6b26
parent51a6edc4b0d2792dc4515de146103cf58f146c1f (diff)
downloaddjango-stable/1.11.x.tar.gz
[1.11.x] Fixed GeoQuerySetTest.test_unionagg_tolerance() test on Oracle 18c.stable/1.11.x
Backport of 5ca76baa729bbbe62f5c4a0fc4f89747dc999029 from master
-rw-r--r--tests/gis_tests/geoapp/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gis_tests/geoapp/tests.py b/tests/gis_tests/geoapp/tests.py
index 7eff87693d..39ab1790bc 100644
--- a/tests/gis_tests/geoapp/tests.py
+++ b/tests/gis_tests/geoapp/tests.py
@@ -899,10 +899,11 @@ class GeoQuerySetTest(TestCase):
srid=4326,
)
self.assertIs(
- forney_houston.equals(
+ forney_houston.equals_exact(
City.objects.filter(point__within=tx).aggregate(
Union('point', tolerance=32000),
)['point__union'],
+ tolerance=10e-6,
),
True,
)