[Python-checkins] CVS: python/dist/src/Lib/test test_extcall.py,1.13,1.14

Jeremy Hylton jhylton@users.sourceforge.net
Wed, 11 Apr 2001 06:53:37 -0700


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

Modified Files:
	test_extcall.py 
Log Message:
Test cases for examples of ext call error handling.
Fix to SF bug #414743 based on Michael Hudson's patch #414750.


Index: test_extcall.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_extcall.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** test_extcall.py	2001/02/09 11:45:26	1.13
--- test_extcall.py	2001/04/11 13:53:35	1.14
***************
*** 139,142 ****
--- 139,156 ----
  
  try:
+     dir(*h)
+ except TypeError, err:
+     print err
+ else:
+     print "should raise TypeError: * argument must be a tuple"
+ 
+ try:
+     None(*h)
+ except TypeError, err:
+     print err
+ else:
+     print "should raise TypeError: * argument must be a tuple"
+ 
+ try:
      h(**h)
  except TypeError, err:
***************
*** 144,147 ****
--- 158,182 ----
  else:
      print "should raise TypeError: ** argument must be a dictionary"
+ 
+ try:
+     dir(**h)
+ except TypeError, err:
+     print err
+ else:
+     print "should raise TypeError: ** argument must be a dictionary"
+ 
+ try:
+     None(**h)
+ except TypeError, err:
+     print err
+ else:
+     print "should raise TypeError: ** argument must be a dictionary"
+ 
+ try:
+     dir(b=1,**{'b':1})
+ except TypeError, err:
+     print err
+ else:
+     print "should raise TypeError: dir() got multiple values for keyword argument 'b'"
  
  def f2(*a, **b):