A schema-less, ldap like, API and database
2a4d9797fa
The standard dictionary in Python 3.7 is ordered But it can fail with python2 Simple reproducer: for i in {1..10}; 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) |
||
---|---|---|
.gitignore | ||
0001-Fix-detection-of-HAVE_LARGEFILE-with-python2.patch | ||
0002-ldb-Run-at-least-some-tests-on-32-bit-machines.patch | ||
0003-ldb-Out-ouf-bound-read-in-ldb_wildcard_compare.patch | ||
libldb.spec | ||
sources |