summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-10-22 13:56:35 (GMT)
committerGuido van Rossum <guido@python.org>1993-10-22 13:56:35 (GMT)
commite61fa0a1e4c6598f286f54772c7e065c49dc17ba (patch)
treef21820dcbed2fd21bc6089eadac6b55ff8817ae9 /Lib/test
parent3bb8a05947fb67ed827dd1e8d7c0a982a1ff989e (diff)
downloadcpython-e61fa0a1e4c6598f286f54772c7e065c49dc17ba.zip
cpython-e61fa0a1e4c6598f286f54772c7e065c49dc17ba.tar.gz
cpython-e61fa0a1e4c6598f286f54772c7e065c49dc17ba.tar.bz2
* profile.py, pdb.py: added help() function
* builtin.py: b/w compat for builtin -> __builtin__ name change * string.py: added atof() and atol() and corresponding exceptions * test_types.py: added test for list sort with user comparison function
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_types.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py
index ec0f841..0a43de3 100644
--- a/Lib/test/test_types.py
+++ b/Lib/test/test_types.py
@@ -152,6 +152,9 @@ a.reverse()
if a <> [2,1,0,-1,-2]: raise TestFailed, 'list reverse'
a.sort()
if a <> [-2,-1,0,1,2]: raise TestFailed, 'list sort'
+def revcmp(a, b): return cmp(b, a)
+a.sort(revcmp)
+if a <> [2,1,0,-1,-2]: raise TestFailed, 'list sort with cmp func'
print '6.6 Mappings == Dictionaries'
d = {}