diff options
| author | Tim Graham <timograham@gmail.com> | 2016-07-19 07:56:15 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-07-19 09:28:45 -0400 |
| commit | 77ec7c50d69aac0be18086041d3e7007279e22fc (patch) | |
| tree | 2aea60fa8dbaa45f002c5d66767751130470235e | |
| parent | 57c4db8c6903e3e95f53f8f0ca448231b385071f (diff) | |
[1.9.x] Fixed a GeoIP test failure with the latest data.
Backport of 081fdaf110386db940d834ba51d93e23aa293fcd from master
| -rw-r--r-- | tests/gis_tests/test_geoip.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gis_tests/test_geoip.py b/tests/gis_tests/test_geoip.py index 2c44db492a..8dbda2c5d9 100644 --- a/tests/gis_tests/test_geoip.py +++ b/tests/gis_tests/test_geoip.py @@ -128,8 +128,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." |
