[Python-3000] need help fixing broken tests in py3k-pep3137 branch
Guido van Rossum
guido at python.org
Mon Nov 5 19:39:42 CET 2007
On 11/3/07, Brett Cannon <brett at python.org> wrote:
> > test_bsddb3
>
> The big failure spewing out all of this stuff about an assert in
> getGenre() failing is because the code in
> Modules/_bsddb.c:_db_associateCallback() uses "y#' to build an
> argument tuple when the test expects a bytes type and not a buffer
> type. Now I searched in Python/modsupport.c and there is not a single
> PyString_*() call in there. What format string are we supposed to use
> for PyString/bytes instances? Should we change 'y' from
> PyBytes/buffer to PyString/bytes, or add yet another format string?
I think we should change 'y' and 'y#' to use PyString. This seems to
fix most of test_bsddb3; I'll have to check how much else it breaks
before I check it in.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list