mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Patch #830858: Correct the number of is-functions. Backported to 2.3 and 2.2.
This commit is contained in:
parent
04570dbed1
commit
893ffa4372
2 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue