[Python-3000] bsddb finished for 2.6/3.0 (and "<class 'BytesWarning'>: str() on a bytes instance")

Jesus Cea jcea at jcea.es
Wed Sep 3 20:03:16 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

With this email I confirm that bsddb work for 2.6/3.0 rc1 is done.

I have some issues with the buildbots, nevertheless. See:
<http://www.python.org/dev/buildbot/3.0.stable/g4 osx.4
3.0/builds/1334/step-test/0>, for example.

"""
Re-running failed tests in verbose mode
Re-running test 'test_bsddb3' in verbose mode
test test_bsddb3 crashed -- <class 'BytesWarning'>: str() on a bytes
instance
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 603, in runtest_inner
    indirect_test()
  File "/Users/buildslave/bb/3.0.psf-g4/build/Lib/test/test_bsddb3.py",
line 60, in test_main
    print(db.DB_VERSION_STRING, file=sys.stderr)
BytesWarning: str() on a bytes instance
"""

I can't reproduce the issue in my local Python3.0 development version
(here, all tests passes fine). Any suggestion?.

"Decoding" the "db.DB_VERSION_STRING" byte string would solve the error,
but I rather prefer to know WHY I am having this issue at all. My
Python3.0 "str()" has no any issue with byte values:

"""
[jcea at tesalia tmp]$ python3.0
Python 3.0b3+ (py3k:66121, Sep  1 2008, 22:25:14)
[GCC 4.2.3] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> b=b'some string...'
>>> b
b'some string...'
>>> str(b)
"b'some string...'"
>>>
"""

Help appreciated.

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBSL7RXplgi5GaxT1NAQLGywP+KHothVVQ1bxmQZixBfKrdAhyqCRZ3S61
xGHE9U6IOaF1fB5O9S+E/OGEa8RX5hWNyxie5UsjG7N7qt0r6q5tqA8bedomsZtY
/CM0lCOr5F3ssFsUF965WxUD03aD+IRssr+7SKTyotNHH1qGF7ffggfGDJmF0/wq
C3RYRS6cUjs=
=sx2A
-----END PGP SIGNATURE-----


More information about the Python-3000 mailing list