[Python-checkins] CVS: python/dist/src/Lib/test test_extcall.py,1.16,1.17 test_gettext.py,1.7,1.8

Barry Warsaw bwarsaw@users.sourceforge.net
Fri, 24 Aug 2001 12:11:59 -0700


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

Modified Files:
	test_extcall.py test_gettext.py 
Log Message:
Quick and dirty fix for test_extcall failures trigged by Guido's
recent classobject.c change.  When calling an unbound method with no
instances as first argument, the error message has changed.  The
message now contains the class name, but the output text being
compared to is too generic, so skip printing it.



Index: test_extcall.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_extcall.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** test_extcall.py	2001/05/13 00:19:31	1.16
--- test_extcall.py	2001/08/24 19:11:57	1.17
***************
*** 192,200 ****
      print Foo.method(*(1, 2, 3))
  except TypeError, err:
!     print err
  try:
      print Foo.method(1, *(2, 3))
  except TypeError, err:
!     print err
  
  # A PyCFunction that takes only positional parameters should allow an
--- 192,204 ----
      print Foo.method(*(1, 2, 3))
  except TypeError, err:
!     pass
! else:
!     print 'expected a TypeError for unbound method call'
  try:
      print Foo.method(1, *(2, 3))
  except TypeError, err:
!     pass
! else:
!     print 'expected a TypeError for unbound method call'
  
  # A PyCFunction that takes only positional parameters should allow an

Index: test_gettext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_gettext.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_gettext.py	2000/10/23 17:22:07	1.7
--- test_gettext.py	2001/08/24 19:11:57	1.8
***************
*** 153,158 ****
  '''
  # Dummy translation for Python's test_gettext.py module.
! # Copyright (C) 2000 BeOpen.com
! # Barry Warsaw <bwarsaw@beopen.com>, 2000.
  #
  msgid ""
--- 153,158 ----
  '''
  # Dummy translation for Python's test_gettext.py module.
! # Copyright (C) 2001 Python Software Foundation
! # Barry Warsaw <barry@python.org>, 2000.
  #
  msgid ""