From 87854b0bdf354059f949350a4d63a0ed071d564c Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 15 Feb 2013 20:11:46 +0100 Subject: [PATCH] Fixed geos test to prevent random failure Points in the test fixtures have 20 as max coordinate. --- django/contrib/gis/geos/tests/test_geos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/gis/geos/tests/test_geos.py b/django/contrib/gis/geos/tests/test_geos.py index ec320f94ec..c15833fb5b 100644 --- a/django/contrib/gis/geos/tests/test_geos.py +++ b/django/contrib/gis/geos/tests/test_geos.py @@ -688,7 +688,7 @@ class GEOSTest(unittest.TestCase, TestDataMixin): for i in range(len(mp)): # Creating a random point. pnt = mp[i] - new = Point(random.randint(1, 100), random.randint(1, 100)) + new = Point(random.randint(21, 100), random.randint(21, 100)) # Testing the assignment mp[i] = new s = str(new) # what was used for the assignment is still accessible