• Noel Power's avatar
    lib/ldb: Use new PYARG_ES format for parseTuple · 8738db2a
    Noel Power authored
    While 'es' format works great for unicode (in python2) and
    str (in python3) The behaviour with str (in python2) is unexpected.
    In python2 the str type is (re-encoded) with the specified encoding.
    In python2 the 'et' type would be a better match, that ensures 'str'
    type is treated like it was with 's' (no reencoding) and unicode is
    encoded with the specified encoding. However in python3 'et' allows
    byte (or bytearray) params to be accepted (with no reencoding), we
    don't want this. This patch adds a new PYARG_STR_UNI format code which
    is a hybrid, in python2 it evaluates to 'et' and in python3 'es' and
    so gives the desired behaviour for each python version.
    
    Additionally remove the associated known fail.
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=13616Signed-off-by: default avatarNoel Power <noel.power@suse.com>
    Reviewed-by: default avatarDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
    
    Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
    Autobuild-Date(master): Sun Jan 13 03:53:00 CET 2019 on sn-devel-144
    
    (cherry picked from commit 8900e0b4)
    8738db2a
Name
Last commit
Last update
..
flapping.d Loading commit data...
gnupg Loading commit data...
knownfail.d Loading commit data...
manage-ca Loading commit data...
target Loading commit data...
README Loading commit data...
SocketWrapper.pm Loading commit data...
Subunit.pm Loading commit data...
TODO Loading commit data...
devel_env.sh Loading commit data...
filter-subunit Loading commit data...
flapping Loading commit data...
format-subunit Loading commit data...
format-subunit-json Loading commit data...
gdb_backtrace Loading commit data...
gdb_backtrace_test.c Loading commit data...
gdb_run Loading commit data...
in_screen Loading commit data...
knownfail Loading commit data...
perf_tests.py Loading commit data...
quick Loading commit data...
save.env.sh Loading commit data...
selftest.pl Loading commit data...
selftest.pl.1 Loading commit data...
selftesthelpers.py Loading commit data...
skip Loading commit data...
skip.no-GSS_KRB5_CRED_NO_CI_FLAGS_X Loading commit data...
skip_mit_kdc Loading commit data...
slow Loading commit data...
subunithelper.py Loading commit data...
tap2subunit Loading commit data...
tests.py Loading commit data...
valgrind_run Loading commit data...
wscript Loading commit data...