Skip to content

Commit

Permalink
[1.4.x] Fixed geos test to prevent random failure
Browse files Browse the repository at this point in the history
Points in the test fixtures have 20 as max coordinate.

Backport of 87854b0 from master.
  • Loading branch information
claudep authored and apollo13 committed Sep 15, 2013
1 parent 6903d16 commit 629813a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/gis/geos/tests/test_geos.py
Expand Up @@ -662,7 +662,7 @@ def test16_mutable_geometries(self):
for i in range(len(mp)): for i in range(len(mp)):
# Creating a random point. # Creating a random point.
pnt = mp[i] 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 # Testing the assignment
mp[i] = new mp[i] = new
s = str(new) # what was used for the assignment is still accessible s = str(new) # what was used for the assignment is still accessible
Expand Down

0 comments on commit 629813a

Please sign in to comment.