{{{
======================================================================
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.
* easy: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Sure, our tests are not there to test underlying tools precision.
--
Ticket URL: <https://code.djangoproject.com/ticket/26147#comment:1>
* status: new => assigned
* owner: nobody => timgraham
--
Ticket URL: <https://code.djangoproject.com/ticket/26147#comment:2>
* has_patch: 0 => 1
* easy: 1 => 0
Comment:
[https://github.com/django/django/pull/6058 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/26147#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/26147#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"5aa53286758fbb1fb864a5efda38718a2ca96759" 5aa53286]:
{{{
#!CommitTicketReference repository=""
revision="5aa53286758fbb1fb864a5efda38718a2ca96759"
Fixed #26147 -- Relaxed expected values in GIS tests to account for
database/library differences.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26147#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"61452616baca63fa58efbb5991f65ba362eccbe2" 6145261]:
{{{
#!CommitTicketReference repository=""
revision="61452616baca63fa58efbb5991f65ba362eccbe2"
[1.9.x] Fixed #26147 -- Relaxed expected values in GIS tests to account
for database/library differences.
Backport of 5aa53286758fbb1fb864a5efda38718a2ca96759 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26147#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"99cd139a30329ff3b8f0d1346c8fd4770cbd7141" 99cd139a]:
{{{
#!CommitTicketReference repository=""
revision="99cd139a30329ff3b8f0d1346c8fd4770cbd7141"
[1.8.x] Fixed #26147 -- Relaxed expected values in GIS tests to account
for database/library differences.
Backport of 5aa53286758fbb1fb864a5efda38718a2ca96759 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26147#comment:7>