#26147: GIS test tolerances need some tuning for PostGIS 2.2
------------------------------------------------+------------------------
Reporter: timgraham | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: GIS | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
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?
--
Ticket URL: <https://code.djangoproject.com/ticket/26147>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.d12a5f760c9ee58745a1647f7971ba88%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.