mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
[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:
parent
4050a150e9
commit
3f607a0324
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue