From 09c0fa2c5365817f5ec21a048612d7a926b7d3a6 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 8 Aug 2014 15:42:48 -0400 Subject: [PATCH] Fixed a non-deterministic test; refs #23099. --- django/contrib/gis/tests/distapp/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/gis/tests/distapp/tests.py b/django/contrib/gis/tests/distapp/tests.py index e236e8edc4..f737854a19 100644 --- a/django/contrib/gis/tests/distapp/tests.py +++ b/django/contrib/gis/tests/distapp/tests.py @@ -329,7 +329,7 @@ class DistanceTest(TestCase): area_sq_m = [5437908.90234375, 10183031.4389648, 11254471.0073242, 9881708.91772461] # Tolerance has to be lower for Oracle 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) def test_length(self):