Chris Jerdonek added the comment:
You can use assertIs() in 2.7 as well, no?
+ @test_support.cpython_only
+ def test_small_ints(self):
+ self.assertTrue(int('10') is 10)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16792>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com