[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 9d33c23857)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2024-01-11 00:56:57 +01:00 committed by GitHub
parent 4050a150e9
commit 3f607a0324
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -604,8 +604,8 @@ class BuiltinTest(unittest.TestCase):
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))