浏览代码

Fixed GeoQuerySetTest.test_unionagg_tolerance() test on Oracle 18c.

Mariusz Felisiak 5 年之前
父节点
当前提交
5ca76baa72
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tests/gis_tests/geoapp/tests.py

+ 2 - 1
tests/gis_tests/geoapp/tests.py

@@ -611,10 +611,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,
         )