[issue10874] test_urllib2 shouldn't use is operator for comparing strings

Łukasz Langa report at bugs.python.org
Sun Jan 9 19:25:35 CET 2011


Łukasz Langa <lukasz at langa.pl> added the comment:

Committed for py3k in r87895. Yup, could have been assertIs as well. The reason for the change is that "is" failed on PyPy.

This should be backported to Python 2.7 as well.

----------

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


More information about the Python-bugs-list mailing list