mirror of
https://github.com/django/django.git
synced 2025-06-04 19:19:13 +00:00
[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.
This commit is contained in:
parent
6903d1690a
commit
629813a804
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user