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?
Sure, our tests are not there to test underlying tools precision.