Author: Amaury Forgeot d'Arc <[email protected]>
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")])
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to