Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#31195 closed Cleanup/optimization (fixed)

gis_tests.geoapp.test_functions.GISFunctionsTests.test_geometry_distance fails with recent PROJ versions.

Reported by: Sergey Fedoseev Owned by: Sergey Fedoseev
Component: GIS Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

gis_tests.geoapp.test_functions.GISFunctionsTests.test_geometry_distance fails with recent PROJ versions (tested with PROJ 5.3.0 and 6.3.0).

Can be reproduced on django-docker-box:

$ DJANGO_PATH=~/dev/django POSTGRES_VERSION=12 POSTGIS_VERSION=2.5 docker-compose run --rm postgres-gis gis_tests.geoapp.test_functions.GISFunctionsTests.test_geometry_distance

======================================================================
FAIL [0.015s]: test_geometry_distance (gis_tests.geoapp.test_functions.GISFunctionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tests/django/django/test/testcases.py", line 1206, in skip_wrapper
    return test_func(*args, **kwargs)
  File "/tests/django/tests/gis_tests/geoapp/test_functions.py", line 283, in test_geometry_distance
    276.987855073372,
AssertionError: Lists differ: [2.9909199552729575, 5.335072740547128, 9.338521874837209[93 chars]3723] != [2.99091995527296, 5.33507274054713, 9.33852187483721, 9.[80 chars]3372]

First differing element 0:
2.9909199552729575
2.99091995527296

Change History (4)

comment:1 by Sergey Fedoseev, 5 years ago

Has patch: set
Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:2 by Mariusz Felisiak, 5 years ago

Summary: gis_tests.geoapp.test_functions.GISFunctionsTests.test_geometry_distance fails with recent PROJ versionsgis_tests.geoapp.test_functions.GISFunctionsTests.test_geometry_distance fails with recent PROJ versions.
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

comment:3 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

Resolution: fixed
Status: assignedclosed

In 31e2ab34:

Fixed #31195 -- Relaxed GeometryDistance test for PROJ 5.2+.

comment:4 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

In d7e4d64:

[3.0.x] Fixed #31195 -- Relaxed GeometryDistance test for PROJ 5.2+.

Backport of 31e2ab345b272b309770262067710589ec433e79 from master

Note: See TracTickets for help on using tickets.
Back to Top