#26147 closed Cleanup/optimization (fixed)
GIS test tolerances need some tuning for PostGIS 2.2
Description ¶
Running the tests on Ubuntu 16.04 alpha with PostGIS 2.2 gives some failures:
====================================================================== FAIL [0.007s]: test_distance_geodetic_spheroid (gis_tests.distapp.tests.DistanceFunctionsTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/jenkins/jobs/django-security-master/workspace/database/postgis/python/python3.5/django/test/testcases.py", line 1068, in skip_wrapper return test_func(*args, **kwargs) File "/var/lib/jenkins/jobs/django-security-master/workspace/database/postgis/python/python3.5/tests/gis_tests/distapp/tests.py", line 598, in test_distance_geodetic_spheroid self.assertAlmostEqual(spheroid_distances[i], c.distance.m, tol) AssertionError: 709599.234564757 != 709599.234573457 within 5 places ====================================================================== FAIL [0.011s]: test_distance_geodetic (gis_tests.distapp.tests.DistanceTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/jenkins/jobs/django-security-master/workspace/database/postgis/python/python3.5/django/test/testcases.py", line 1068, in skip_wrapper return test_func(*args, **kwargs) File "/var/lib/jenkins/jobs/django-security-master/workspace/database/postgis/python/python3.5/django/test/utils.py", line 208, in inner return func(*args, **kwargs) File "/var/lib/jenkins/jobs/django-security-master/workspace/database/postgis/python/python3.5/tests/gis_tests/distapp/tests.py", line 200, in test_distance_geodetic self.assertAlmostEqual(spheroid_distances[i], c.distance.m, tol) AssertionError: 709599.234564757 != 709599.234573457 within 5 places ====================================================================== FAIL [0.002s]: test_geography_area (gis_tests.geogapp.tests.GeographyFunctionTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/jenkins/jobs/django-security-master/workspace/database/postgis/python/python3.5/django/test/testcases.py", line 1068, in skip_wrapper return test_func(*args, **kwargs) File "/var/lib/jenkins/jobs/django-security-master/workspace/database/postgis/python/python3.5/tests/gis_tests/geogapp/tests.py", line 134, in test_geography_area self.assertAlmostEqual(z.area.sq_m, ref_area, tol) AssertionError: 5439101.21424022 != 5439084.70637573 within 5 places ====================================================================== FAIL [0.006s]: test06_geography_area (gis_tests.geogapp.tests.GeographyTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/jenkins/jobs/django-security-master/workspace/database/postgis/python/python3.5/django/test/testcases.py", line 1068, in skip_wrapper return test_func(*args, **kwargs) File "/var/lib/jenkins/jobs/django-security-master/workspace/database/postgis/python/python3.5/django/test/utils.py", line 208, in inner return func(*args, **kwargs) File "/var/lib/jenkins/jobs/django-security-master/workspace/database/postgis/python/python3.5/tests/gis_tests/geogapp/tests.py", line 104, in test06_geography_area self.assertAlmostEqual(z.area.sq_m, ref_area, tol) AssertionError: 5439101.21424022 != 5439084.70637573 within 5 places
Should we adjust the tolerances accordingly?
Change History (7)
comment:1 by , 9 years ago
Easy pickings: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 9 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
Sure, our tests are not there to test underlying tools precision.