Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#27965 closed Cleanup/optimization (fixed)

gis_tests.test_geoforms.GeometryFieldTest.test_field_string_value fails

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

Description

======================================================================
FAIL: test_field_string_value (gis_tests.test_geoforms.GeometryFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/lib/python3.5/unittest/case.py", line 601, in run
    testMethod()
  File "/home/sergey/dev/django/tests/gis_tests/test_geoforms.py", line 119, in test_field_string_value
    self.assertEqual(pt1_json, {'coordinates': [812632.2827908975, 5465442.183322753], 'type': 'Point'})
  File "/usr/lib/python3.5/unittest/case.py", line 821, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib/python3.5/unittest/case.py", line 1112, in assertDictEqual
    self.fail(self._formatMessage(msg, standardMsg))
  File "/usr/lib/python3.5/unittest/case.py", line 666, in fail
    raise self.failureException(msg)
AssertionError: {'type': 'Point', 'coordinates': [812632.2827908972, 5465442.183322753]} != {'coordinates': [812632.2827908975, 5465442.183322753], 'type': 'Point'}
- {'coordinates': [812632.2827908972, 5465442.183322753], 'type': 'Point'}
?                                  ^

+ {'coordinates': [812632.2827908975, 5465442.183322753], 'type': 'Point'}
?

Change History (5)

comment:1 Changed 3 years ago by Sergey Fedoseev

Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:2 Changed 3 years ago by Sergey Fedoseev

Has patch: set

comment:3 Changed 3 years ago by Tim Graham

Triage Stage: UnreviewedReady for checkin

comment:4 Changed 3 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 816c5753:

Fixed #27965 -- Fixed precision comparison in a geoforms test (refs #27939).

comment:5 Changed 3 years ago by Tim Graham <timograham@…>

In 4f02adb:

[1.11.x] Fixed #27965 -- Fixed precision comparison in a geoforms test (refs #27939).

Backport of 816c5753ac554b2af710aebc98ad60fd5823e03f from master

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