Fixed a non-deterministic test; refs #23099.
This commit is contained in:
parent
f53b1c779b
commit
09c0fa2c53
|
@ -329,7 +329,7 @@ class DistanceTest(TestCase):
|
||||||
area_sq_m = [5437908.90234375, 10183031.4389648, 11254471.0073242, 9881708.91772461]
|
area_sq_m = [5437908.90234375, 10183031.4389648, 11254471.0073242, 9881708.91772461]
|
||||||
# Tolerance has to be lower for Oracle
|
# Tolerance has to be lower for Oracle
|
||||||
tol = 2
|
tol = 2
|
||||||
for i, z in enumerate(SouthTexasZipcode.objects.area()):
|
for i, z in enumerate(SouthTexasZipcode.objects.order_by('name').area()):
|
||||||
self.assertAlmostEqual(area_sq_m[i], z.area.sq_m, tol)
|
self.assertAlmostEqual(area_sq_m[i], z.area.sq_m, tol)
|
||||||
|
|
||||||
def test_length(self):
|
def test_length(self):
|
||||||
|
|
Loading…
Reference in New Issue