diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-10-31 15:35:53 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-10-31 15:35:53 (GMT) |
commit | 893ffa4372f750bd21ae32ed215e39adc3c1597b (patch) | |
tree | 28139623340b856800e04caea9f35effd8615a11 /Lib/test/test_inspect.py | |
parent | 04570dbed1273faa0ede74aa240ff3ea01cadd8a (diff) | |
download | cpython-893ffa4372f750bd21ae32ed215e39adc3c1597b.zip cpython-893ffa4372f750bd21ae32ed215e39adc3c1597b.tar.gz cpython-893ffa4372f750bd21ae32ed215e39adc3c1597b.tar.bz2 |
Patch #830858: Correct the number of is-functions. Backported to 2.3 and 2.2.
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r-- | Lib/test/test_inspect.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index 9da6694..3ff08b7 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -370,3 +370,7 @@ test(args == ['self'], 'A.m args') test(varargs is None, 'A.m varargs') test(varkw is None, 'A.m varkw') test(defaults is None, 'A.m defaults') + +# Doc/lib/libinspect.tex claims there are 11 such functions +count = len(filter(lambda x:x.startswith('is'), dir(inspect))) +test(count == 11, "There are %d (not 11) is* functions", count) |