[issue20545] Use specific asserts in unicode tests

STINNER Victor report at bugs.python.org
Fri Feb 7 23:25:43 CET 2014


STINNER Victor added the comment:

-                    self.assertTrue(type(result) is str, type(result))
+                    self.assertIs(type(result), str, type(result))

You can probably drop the third parameter.

Victor

----------

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


More information about the Python-bugs-list mailing list