https://github.com/python/cpython/commit/3f607a03242e98ec6ff141fa9bd27ebfb46c7519 commit: 3f607a03242e98ec6ff141fa9bd27ebfb46c7519 branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: vstinner <[email protected]> date: 2024-01-10T23:56:57Z summary:
[3.12] gh-113896: Fix test_builtin.BuiltinTest.test___ne__() (GH-113897) (#113928) gh-113896: Fix test_builtin.BuiltinTest.test___ne__() (GH-113897) Fix DeprecationWarning in test___ne__(). (cherry picked from commit 9d33c23857cfd952bf3e1e7f34c77b7c9a5accc3) Co-authored-by: Kirill Podoprigora <[email protected]> Co-authored-by: Nikita Sobolev <[email protected]> files: M Lib/test/test_builtin.py diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index a735def65f517e..4d03c46382e393 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -604,8 +604,8 @@ def __dir__(self): def test___ne__(self): self.assertFalse(None.__ne__(None)) - self.assertTrue(None.__ne__(0)) - self.assertTrue(None.__ne__("abc")) + self.assertIs(None.__ne__(0), NotImplemented) + self.assertIs(None.__ne__("abc"), NotImplemented) def test_divmod(self): self.assertEqual(divmod(12, 7), (1, 5)) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
