Opened 17 years ago

Closed 15 years ago

Last modified 15 years ago

#6093 closed (wontfix)

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

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

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 by Simon G <dev@…>, 17 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Richard Davies <richard.davies@…>, 16 years ago

Cc: richard.davies@… added

comment:3 by Gary Wilson, 15 years ago

Resolution: wontfix
Status: newclosed

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.

in reply to:  3 comment:4 by Karen Tracey, 15 years ago

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