diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-02-15 20:11:46 +0100 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2013-09-15 11:45:16 +0200 |
| commit | 629813a8041da266d7ea1a001cd46259f87a486a (patch) | |
| tree | 61d047ad2143bc92934c6120fb041f0ccfa97e07 | |
| parent | 6903d1690a92aa040adfb0c8eb37cf62e4206714 (diff) | |
[1.4.x] Fixed geos test to prevent random failure
Points in the test fixtures have 20 as max coordinate.
Backport of 87854b0bdf354059f949350a4d63a0ed071d564c 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 a8372b4f69..ddd5d58226 100644 --- a/django/contrib/gis/geos/tests/test_geos.py +++ b/django/contrib/gis/geos/tests/test_geos.py @@ -662,7 +662,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 |
