mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #1717: remove the cmp builtin function, the C-API functions
PyObject_Cmp, PyObject_Compare, and various support functions.
This commit is contained in:
parent
211c625829
commit
f02e0aaafd
8 changed files with 6 additions and 184 deletions
|
@ -220,9 +220,7 @@ class BuiltinTest(unittest.TestCase):
|
|||
self.assertRaises((OverflowError, ValueError), chr, 2**32)
|
||||
|
||||
def test_cmp(self):
|
||||
# uncomment the following line once cmp has been removed
|
||||
#self.assert_(not hasattr(builtins, "cmp"))
|
||||
pass
|
||||
self.assert_(not hasattr(builtins, "cmp"))
|
||||
|
||||
def test_compile(self):
|
||||
compile('print(1)\n', '', 'exec')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue