Skip to content

Test suite is failing on big endian machines #161

@tiran

Description

@tiran

If you found a bug in python-ldap, or would request a new feature,
this is the place to let us know.

Please describe the issue and your environment here.

The test suite is failing on big endian machines like PPC64 and S390x. It seems like some code paths are not endian-safe. See https://koji.fedoraproject.org/koji/taskinfo?taskID=24110971


Issue description:

======================================================================
FAIL: test_pagedresults_decode (Tests.t_ldap_controls_libldap.TestLibldapControls)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-ldap-3.0.0/python2/Tests/t_ldap_controls_libldap.py", line 38, in test_pagedresults_decode
    self.assertEqual(lib.size, SIZE)
AssertionError: 21474836480 != 5
======================================================================
FAIL: test_pagedresults_encode (Tests.t_ldap_controls_libldap.TestLibldapControls)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-ldap-3.0.0/python2/Tests/t_ldap_controls_libldap.py", line 25, in test_pagedresults_encode
    self.assertEqual(pr.encodeControlValue(), lib.encodeControlValue())
AssertionError: '0\x0b\x02\x01\x05\x04\x06cookie' != '0\x0e\x02\x04\x81\xd0\xdf0\x04\x06cookie'

Steps to reproduce:

  • run tests on a big endian architecture

Operating system:
Fedora Linux 27

Python version:
any

python-ldap version:
3.0.0-b4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy