STINNER Victor added the comment:

> What I was doing wrong?

The "is" operator should only be used to compare identical objects. Small 
integers (range -5..255 if I remember correctly) are singletons. I prefer to 
not rely on this implementation detail in a unit test of the Python standard 
library.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21422>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to