Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#6093 closed (wontfix)

a few Decimal/float serializers_regress tests failing with python 2.3 and postgresql_psycopg2 engine

Reported by: gwilson Owned by: nobody
Component: Core (Serialization) Version: master
Severity: Keywords:
Cc: richard.davies@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

======================================================================
FAIL: test_json_serializer (regressiontests.serializers_regress.tests.SerializerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gdub/bzr/django/upstream/django/utils/functional.py", line 3, in _curried
    return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
  File "/home/gdub/bzr/django/upstream/tests/regressiontests/serializers_regress/tests.py", line 305, in serializerTest
    func[1](self, pk, klass, datum)
  File "/home/gdub/bzr/django/upstream/tests/regressiontests/serializers_regress/tests.py", line 74, in data_compare
    "Objects with PK=%d not equal; expected '%s' (%s), got '%s' (%s)" % (pk,data, type(data), instance.data, type(instance.data)))
  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: Objects with PK=70 not equal; expected '12.345' (<class 'django.utils._decimal.Decimal'>), got '12.345' (<type 'float'>)

======================================================================
FAIL: test_python_serializer (regressiontests.serializers_regress.tests.SerializerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gdub/bzr/django/upstream/django/utils/functional.py", line 3, in _curried
    return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
  File "/home/gdub/bzr/django/upstream/tests/regressiontests/serializers_regress/tests.py", line 305, in serializerTest
    func[1](self, pk, klass, datum)
  File "/home/gdub/bzr/django/upstream/tests/regressiontests/serializers_regress/tests.py", line 74, in data_compare
    "Objects with PK=%d not equal; expected '%s' (%s), got '%s' (%s)" % (pk,data, type(data), instance.data, type(instance.data)))
  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: Objects with PK=70 not equal; expected '12.345' (<class 'django.utils._decimal.Decimal'>), got '12.345' (<type 'float'>)

======================================================================
FAIL: test_xml_serializer (regressiontests.serializers_regress.tests.SerializerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gdub/bzr/django/upstream/django/utils/functional.py", line 3, in _curried
    return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
  File "/home/gdub/bzr/django/upstream/tests/regressiontests/serializers_regress/tests.py", line 305, in serializerTest
    func[1](self, pk, klass, datum)
  File "/home/gdub/bzr/django/upstream/tests/regressiontests/serializers_regress/tests.py", line 74, in data_compare
    "Objects with PK=%d not equal; expected '%s' (%s), got '%s' (%s)" % (pk,data, type(data), instance.data, type(instance.data)))
  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: Objects with PK=70 not equal; expected '12.345' (<class 'django.utils._decimal.Decimal'>), got '12.345' (<type 'float'>)

----------------------------------------------------------------------
Ran 8 tests in 24.318s

FAILED (failures=3)

Change History (4)

comment:1 Changed 8 years ago by Simon G <dev@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 7 years ago by Richard Davies <richard.davies@…>

  • Cc richard.davies@… added

comment:3 follow-up: Changed 6 years ago by gwilson

  • Resolution set to wontfix
  • Status changed from new to closed

Python 2.3 support is being dropped in the 1.2 release. If anyone has a patch that fixes this, then please reopen as we will still support Python 2.3 bug fixes for the 1.0.X branch.

comment:4 in reply to: ↑ 3 Changed 6 years ago by kmtracey

Replying to gwilson:

... we will still support Python 2.3 bug fixes for the 1.0.X branch.

That's 1.1.X branch. The 1.0.X branch only gets security fixes now.

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