Opened 8 years ago

Closed 8 years ago

Last modified 8 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: dev
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 by Sergey Fedoseev, 8 years ago

Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:2 by Sergey Fedoseev, 8 years ago

Has patch: set

comment:3 by Tim Graham, 8 years ago

Triage Stage: UnreviewedReady for checkin

comment:4 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In 816c5753:

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

comment:5 by Tim Graham <timograham@…>, 8 years ago

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