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

loewis at users.sourceforge.net loewis at users.sourceforge.net
Fri Oct 31 10:35:55 EST 2003


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

Modified Files:
	test_inspect.py 
Log Message:
Patch #830858: Correct the number of is-functions. Backported to 2.3 and 2.2.


Index: test_inspect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_inspect.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_inspect.py	27 Jun 2003 18:43:12 -0000	1.12
--- test_inspect.py	31 Oct 2003 15:35:53 -0000	1.13
***************
*** 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