-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Description
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
Labels
No labels