Serhiy Storchaka added the comment:
Interesting, the last patch exposed a flaw in test_slice.
def test_hash(self):
# Verify clearing of SF bug #800796
self.assertRaises(TypeError, hash, slice(5))
self.assertRaises(TypeError, slice(5).__hash__)
But the second self.assertRaises() doesn't call __hash__. It is successful by
accident, because slice(5).__hash__ is None.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue24134>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com