mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
7a7a5ccf50
Test failed on s390x but there is a simple reproducer for any architecture. The built-in function repr returns the canonical string representation of the object. We needn't care about order attributes in string representation. Therefore test should pass for any order. for i in {1..30}; do PYTHONHASHSEED=random \ python2 -c 'import ldb; msg = ldb.Message(); msg.dn = ldb.Dn(ldb.Ldb(), "dc=foo29"); msg["dc"] = b"foo"; print(repr(msg)) ' done ====================================================================== FAIL: test_repr (__main__.LdbMsgTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/python/api.py", line 2322, in test_repr "Message({'dn': Dn('dc=foo29'), 'dc': MessageElement(['foo'])})") AssertionError: "Message({'dc': MessageElement(['foo']), 'dn': Dn('dc=foo29')})" != "Message({'dn': Dn('dc=foo29'), 'dc': MessageElement(['foo'])})" ---------------------------------------------------------------------- Ran 1025 tests in 29.146s FAILED (failures=1) Signed-off-by: Lukas Slebodnik <lslebodn@fedoraproject.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org> |
||
---|---|---|
.. | ||
python | ||
schema-tests | ||
init_slapd.sh | ||
init.ldif | ||
kill_slapd.sh | ||
ldapi_url.sh | ||
ldb_kv_ops_test.c | ||
ldb_lmdb_size_test.c | ||
ldb_lmdb_test.c | ||
ldb_mod_op_test.c | ||
ldb_msg.c | ||
ldb_tdb_test.c | ||
photo.ldif | ||
samba4.png | ||
sample_module.c | ||
slapd.conf | ||
start_slapd.sh | ||
test_ldb_dn.c | ||
test_ldb_qsort.c | ||
test-attribs.ldif | ||
test-config.ldif | ||
test-controls.sh | ||
test-default-config.ldif | ||
test-dup-2.ldif | ||
test-dup.ldif | ||
test-extended.sh | ||
test-generic.sh | ||
test-index.ldif | ||
test-ldap.sh | ||
test-modify-modrdn.ldif | ||
test-modify-unmet-2.ldif | ||
test-modify-unmet.ldif | ||
test-modify.ldif | ||
test-schema.sh | ||
test-soloading.sh | ||
test-sqlite3.sh | ||
test-tdb-features.sh | ||
test-tdb-subunit.sh | ||
test-tdb.sh | ||
test-wildcard.ldif | ||
test-wrong_attributes.ldif | ||
test.ldif | ||
testdata.txt | ||
testsearch.txt |