commit | 3e57b52bb800b8d001092490f2a658271d613d6d | [log] [tgz] |
---|---|---|
author | Thomas Wouters <thomas@python.org> | Tue Aug 28 23:07:26 2007 +0000 |
committer | Thomas Wouters <thomas@python.org> | Tue Aug 28 23:07:26 2007 +0000 |
tree | 0f46893256c6505d4026f03ffb8f625a4fb0527f | |
parent | ed03b4121ead78df76f6882de5eca01b7a3a628c [diff] [blame] |
Fix buglet in sliceobjects, they were not returning Py_NotImplemented when compared against something other than sliceobjects.
diff --git a/Lib/test/test_slice.py b/Lib/test/test_slice.py index 4d89aa6..97b3084 100644 --- a/Lib/test/test_slice.py +++ b/Lib/test/test_slice.py
@@ -26,6 +26,9 @@ 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