summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-02-15 20:11:46 +0100
committerClaude Paroz <claude@2xlibre.net>2013-02-15 20:15:31 +0100
commit5a803ce10ef0c1b3777fb781d6feba72610c4265 (patch)
treedf86cbaee7d76d643afa27b487dd64ee7795677c
parent1b54c85a53edec2f802223c702cb1dfde6be9aa5 (diff)
[1.5.x] Fixed geos test to prevent random failure
Points in the test fixtures have 20 as max coordinate. Backport of 87854b0bdf3 from master.
-rw-r--r--django/contrib/gis/geos/tests/test_geos.py2
1 files changed, 1 insertions, 1 deletions
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