Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.5.x] Fixed geos test to prevent random failure

Points in the test fixtures have 20 as max coordinate.
Backport of 87854b0 from master.
  • Loading branch information...
commit 5a803ce10ef0c1b3777fb781d6feba72610c4265 1 parent 1b54c85
@claudep claudep authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/gis/geos/tests/test_geos.py
View
2  django/contrib/gis/geos/tests/test_geos.py
@@ -688,7 +688,7 @@ def test_mutable_geometries(self):
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
Please sign in to comment.
Something went wrong with that request. Please try again.