1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/python/samba
Joe Guo 0ebf52744c selftest: enable py3 for samba.tests.common
fix dsdb_Dn comparison for Python 3

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@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2018-04-05 08:59:10 +02:00
..
emulate samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
kcc samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
netcmd samba-tool: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
provision provision: use the provision control when adding foreignSecurityPrincipals 2018-03-19 20:30:50 +01:00
samba3 samba3: work around bytes formatting for Python 3.4 2018-04-05 08:59:09 +02:00
subunit subunit.run: report failure in process return code 2018-02-09 07:59:20 +01:00
tests selftest: enable py3 for samba.tests.upgrade 2018-04-05 08:59:09 +02:00
web_server samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
__init__.py pyglue: Add function to generate a random byte string 2017-12-18 00:10:16 +01:00
colour.py samba_kcc: kcc.debug module defers to samba.colour 2018-01-13 17:37:07 +01:00
common.py selftest: enable py3 for samba.tests.common 2018-04-05 08:59:10 +02:00
compat.py python: Add text_type Python 2/3 compatible function name. 2018-02-15 00:18:29 +01:00
dbchecker.py samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
descriptor.py 2008R2: Missing operation (75, 76) for ActiveDirectoryUpdate version 5 (FL) 2017-12-20 23:13:11 +01:00
dnsserver.py python: Move dnsserver helper functions into samba.dnsserver 2017-02-23 11:36:21 +01:00
domain_update.py domain_update: Add a new docstring for the main entry point 2017-12-20 23:13:11 +01:00
drs_utils.py samba python libs: convert 'except X, e' to 'except X as e' 2018-02-15 00:18:30 +01:00
forest_update.py python: fix the build with python3. 2018-01-16 16:38:23 +01:00
getopt.py python: Allow debug classes to be specified on the command line for python tools 2017-09-07 10:43:33 +02:00
gpclass.py gpo: Add the winbind call to gpupdate 2018-01-13 22:38:05 +01:00
graph.py python/graph: module for generating ASCII and graphviz visualisations 2018-01-13 17:37:07 +01:00
hostconfig.py
idmap.py
join.py samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
ms_display_specifiers.py samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
ms_forest_updates_markdown.py samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
ms_schema_markdown.py samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
ms_schema.py get make test TESTS=samba.tests.provision to work 2018-04-05 08:59:09 +02:00
ndr.py python:ndr: add ndr_{pack,unpack,print}_{in,out} helper functions 2016-10-26 11:20:19 +02:00
ntacls.py samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
remove_dc.py remove_dc.py: Abort transaction before throwing an exception 2018-03-05 20:50:15 +01:00
samdb.py samba-tool: allow sid strings for 'group {add,remove}members' 2018-03-19 20:30:51 +01:00
schema.py provision: Use the official MS 2008R2 schema by default 2017-12-14 08:20:17 +01:00
sd_utils.py python: Allow sd_utils to take a Dn object, not just a string DN 2017-06-10 21:48:20 +02:00
sites.py samba python libs: convert 'except X, (tuple)' to 'except X as e' 2018-02-28 23:01:40 +01:00
subnets.py samba python libs: convert 'except X, (tuple)' to 'except X as e' 2018-02-28 23:01:40 +01:00
tdb_util.py
upgrade.py samba python libs: convert 'except X, (tuple)' to 'except X as e' 2018-02-28 23:01:40 +01:00
upgradehelpers.py samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
xattr.py