mirror of https://github.com/python/cpython
gh-113896: Fix test_builtin.BuiltinTest.test___ne__() (#113897)
Fix DeprecationWarning in test___ne__(). Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
fafb3275f2
commit
9d33c23857
|
@ -629,8 +629,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))
|
||||
|
|
Loading…
Reference in New Issue