#25183: Non-deterministic GeoIP test: GeoIPTest.test03_country ---------------------------+-------------------------------------- Reporter: timgraham | Owner: nobody Type: Bug | Status: closed Component: GIS | Version: 1.8 Severity: Normal | Resolution: worksforme Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ---------------------------+--------------------------------------
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> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.0882d5d2bba84b8edc293dde94444f68%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.