diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-02-15 20:11:46 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-02-15 20:15:31 +0100 |
| commit | 5a803ce10ef0c1b3777fb781d6feba72610c4265 (patch) | |
| tree | df86cbaee7d76d643afa27b487dd64ee7795677c | |
| parent | 1b54c85a53edec2f802223c702cb1dfde6be9aa5 (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.py | 2 |
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 |
