mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Fix buglet in sliceobjects, they were not returning Py_NotImplemented when
compared against something other than sliceobjects.
This commit is contained in:
parent
ed03b4121e
commit
3e57b52bb8
2 changed files with 8 additions and 0 deletions
|
|
@ -26,6 +26,9 @@ class SliceTest(unittest.TestCase):
|
|||
s3 = slice(1, 2, 4)
|
||||
self.assertEqual(s1, s2)
|
||||
self.assertNotEqual(s1, s3)
|
||||
self.assertNotEqual(s1, None)
|
||||
self.assertNotEqual(s1, (1, 2, 3))
|
||||
self.assertNotEqual(s1, "")
|
||||
|
||||
class Exc(Exception):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue