[Python-checkins] python/dist/src/Lib/test test_inspect.py, 1.12, 1.12.8.1

loewis at users.sourceforge.net loewis at users.sourceforge.net
Fri Oct 31 10:34:18 EST 2003


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv3416/Lib/test

Modified Files:
      Tag: release23-maint
	test_inspect.py 
Log Message:
Patch #830858: Correct the number of is-functions.


Index: test_inspect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_inspect.py,v
retrieving revision 1.12
retrieving revision 1.12.8.1
diff -C2 -d -r1.12 -r1.12.8.1
*** test_inspect.py	27 Jun 2003 18:43:12 -0000	1.12
--- test_inspect.py	31 Oct 2003 15:34:16 -0000	1.12.8.1
***************
*** 371,372 ****
--- 371,376 ----
  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)





More information about the Python-checkins mailing list