From 191487351abb5d2b7daf9d839ca2b3a3c7fdc07b Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 24 Aug 2001 19:11:57 +0000 Subject: 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. --- Lib/test/test_extcall.py | 8 ++++++-- Lib/test/test_gettext.py | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py index 9effac7..1e80387 100644 --- a/Lib/test/test_extcall.py +++ b/Lib/test/test_extcall.py @@ -191,11 +191,15 @@ print Foo.method(x, *(1, 2)) try: print Foo.method(*(1, 2, 3)) except TypeError, err: - print err + pass +else: + print 'expected a TypeError for unbound method call' try: print Foo.method(1, *(2, 3)) except TypeError, err: - print err + pass +else: + print 'expected a TypeError for unbound method call' # A PyCFunction that takes only positional parameters should allow an # empty keyword dictionary to pass without a complaint, but raise a diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py index 56a8524..f64052c 100644 --- a/Lib/test/test_gettext.py +++ b/Lib/test/test_gettext.py @@ -152,8 +152,8 @@ finally: ''' # Dummy translation for Python's test_gettext.py module. -# Copyright (C) 2000 BeOpen.com -# Barry Warsaw , 2000. +# Copyright (C) 2001 Python Software Foundation +# Barry Warsaw , 2000. # msgid "" msgstr "" -- cgit v0.12