[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

Ezio Melotti report at bugs.python.org
Sun Jan 31 04:15:41 CET 2010


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

The patch for bsddb3 looks good, however there's no reason (IMHO) to keep in the tests those "if sys.version_info[0] < 3:" or replace the version with (2,6) since we are already using things like assertIn that are 2.7-only. I changed it only to avoid warnings, and left it unchanged in other places (not related to this issue) and in dbtables.py (to preserve compatibility in the unlikely case that someone wants to try running 2.7's bsddb with older versions of Python).
Attached a new patch.

----------
Added file: http://bugs.python.org/file16065/issue7092_bsddb3v2.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7092>
_______________________________________


More information about the Python-bugs-list mailing list