Traceback (most recent call last):
File "/home/jenkins/workspace/pull-requests-
trusty/database/sqlite3/label/trusty-
pr/python/python2.7/tests/gis_tests/test_geoip.py", line 78, in
test03_country
self.assertEqual('United States', func(query))
AssertionError: u'United States' != u'Taiwan'
- United States
+ Taiwan
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25183>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Tim Graham <timograham@…>):
In [changeset:"c0416711672ab289260c4a00a0024da862140027" c041671]:
{{{
#!CommitTicketReference repository=""
revision="c0416711672ab289260c4a00a0024da862140027"
Refs #25183 -- Added debugging for non-deterministic GeoIP test.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25183#comment:1>
* status: new => closed
* resolution: => worksforme
Comment:
This hasn't reoccurred.
--
Ticket URL: <https://code.djangoproject.com/ticket/25183#comment:2>
Comment (by timgraham):
Spotted a recent failure on Jenkins:
{{{
Traceback (most recent call last):
File "/home/jenkins/workspace/pull-requests-
trusty/database/mysql_gis/label/trusty-
pr/python/python3.4/tests/gis_tests/test_geoip.py", line 78, in
test03_country
self.assertEqual('United States', func(query), 'Failed for func %s and
query %s' % (func, query))
AssertionError: 'United States' != 'Vietnam'
- United States
+ Vietnam
: Failed for func <bound method GeoIP.country_name of
<django.contrib.gis.geoip.base.GeoIP object at 0x7f848912cbe0>> and query
www.google.com
}}}
Could it be an issue because Google has servers all over the world? (not
exactly sure how GeoIP lookup works). We could try switching to something
like djangoproject.com which only has servers in the US.
--
Ticket URL: <https://code.djangoproject.com/ticket/25183#comment:3>
* status: closed => new
* resolution: worksforme =>
--
Ticket URL: <https://code.djangoproject.com/ticket/25183#comment:4>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/5069 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/25183#comment:5>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"5b6ca150730cddb09ff8622d49b273d57b9c6703" 5b6ca150]:
{{{
#!CommitTicketReference repository=""
revision="5b6ca150730cddb09ff8622d49b273d57b9c6703"
Fixed #25183 -- Fixed non-deterministic GeoIP test.
google.com doesn't always resolve to an IP inside the United States.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25183#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"77566dcc6e489de9f711498b3d5c9018b50be176" 77566dcc]:
{{{
#!CommitTicketReference repository=""
revision="77566dcc6e489de9f711498b3d5c9018b50be176"
[1.8.x] Fixed #25183 -- Fixed non-deterministic GeoIP test.
google.com doesn't always resolve to an IP inside the United States.
Backport of 5b6ca150730cddb09ff8622d49b273d57b9c6703 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25183#comment:8>
Comment (by Tim Graham <timograham@…>):
In [changeset:"4fc5b487a8c23820240d70f334e612a7fcc33771" 4fc5b487]:
{{{
#!CommitTicketReference repository=""
revision="4fc5b487a8c23820240d70f334e612a7fcc33771"
[1.7.x] Fixed #25183 -- Fixed non-deterministic GeoIP test.
google.com doesn't always resolve to an IP inside the United States.
Backport of 5b6ca150730cddb09ff8622d49b273d57b9c6703 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25183#comment:7>