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

Ezio Melotti report at bugs.python.org
Fri Jan 29 13:21:36 CET 2010


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

A couple of comments about issue7092_syntax_imports_v3.diff too:
1) in test_copy you remove (k,v), but left the name 'k' even if now it represent the item and not the key;
2) in test_fractions you should probably use self.fail() instead of an assert;
3) on test_ftp you can use two separate lines and remove the ';';
4) in test_pyclbr there's one extra 'f' in the comment in assertHaskey;
5) in test_xml_etree_c you can either leave callable() and catch the warning or use isinstance(x, collections.Callable) instead (there are also a few more places where callable was used too).

----------

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


More information about the Python-bugs-list mailing list