[PR PATCH] [Closed]: selftest/common: fix dsdb_Dn comparison for Python 3

github at samba.org github at samba.org
Thu Apr 5 10:32:18 UTC 2018


There's a closed pull request on the Samba Samba Github repository

selftest/common: fix dsdb_Dn comparison for Python 3
https://github.com/samba-team/samba/pull/151
Description: In Python 3, the builtin `cmp` funtion was dropped. And the `__cmp__` magic
method in object is no longer honored, which is replaced by 6 new methods:
`__eq__, __ne__, __lt__, __le__, __gt__, __ge__`.

This caused `tests.CommonTests` failed with `py3_compatiable=True`.
Fixed by adding the above methods.

Signed-off-by: Joe Guo <joeg at catalyst.net.nz>


More information about the samba-technical mailing list