[1.8.x] Fixed a GeoIP test failure with the latest data.

Backport of 081fdaf110 from master
This commit is contained in:
Tim Graham 2016-07-19 07:56:15 -04:00
parent 2deed2ea08
commit 9f8ef7724d
1 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ class GeoIPTest(unittest.TestCase):
lat_lon = g.lat_lon(query)
lat_lon = (lat_lon[1], lat_lon[0])
for tup in (geom.tuple, g.coords(query), g.lon_lat(query), lat_lon):
self.assertAlmostEqual(lon, tup[0], 4)
self.assertAlmostEqual(lat, tup[1], 4)
self.assertAlmostEqual(lon, tup[0], 0)
self.assertAlmostEqual(lat, tup[1], 0)
def test05_unicode_response(self):
"Testing that GeoIP strings are properly encoded, see #16553."