[pypy-commit] pypy py3k: Workaround for a real libdb bug.
amauryfa
noreply at buildbot.pypy.org
Sat Feb 14 12:53:04 CET 2015
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r75866:6226af3cba30
Date: 2015-02-14 12:52 +0100
http://bitbucket.org/pypy/pypy/changeset/6226af3cba30/
Log: Workaround for a real libdb bug.
Uncovered by pypy because dictionaries are now ordered, and the
first exercised key corresponds to an empty value.
diff --git a/lib-python/3/test/test_dbm.py b/lib-python/3/test/test_dbm.py
--- a/lib-python/3/test/test_dbm.py
+++ b/lib-python/3/test/test_dbm.py
@@ -106,6 +106,8 @@
f.close()
def read_helper(self, f):
+ f['a'] # Work around a bug in BerkeleyDB:
+ # https://bugs.launchpad.net/ubuntu/+source/db5.3/+bug/1421223
keys = self.keys_helper(f)
for key in self._dict:
self.assertEqual(self._dict[key], f[key.encode("ascii")])
More information about the pypy-commit
mailing list