mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #1717: Remove cmp. Stage 1: remove all uses of cmp and __cmp__ from
the standard library and tests.
This commit is contained in:
parent
191e850053
commit
a56c467ac3
32 changed files with 210 additions and 216 deletions
|
@ -291,7 +291,7 @@ class CopyTestCase(unittest.TestCase):
|
|||
# Testing if the copy method created a real copy.
|
||||
h1 = hmac.HMAC(b"key")
|
||||
h2 = h1.copy()
|
||||
# Using id() in case somebody has overridden __cmp__.
|
||||
# Using id() in case somebody has overridden __eq__/__ne__.
|
||||
self.failUnless(id(h1) != id(h2), "No real copy of the HMAC instance.")
|
||||
self.failUnless(id(h1.inner) != id(h2.inner),
|
||||
"No real copy of the attribute 'inner'.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue