]> granicus.if.org Git - python/commitdiff
Quick and dirty fix for test_extcall failures trigged by Guido's
authorBarry Warsaw <barry@python.org>
Fri, 24 Aug 2001 19:11:57 +0000 (19:11 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 24 Aug 2001 19:11:57 +0000 (19:11 +0000)
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
Lib/test/test_gettext.py

index 9effac7585fc48223d953d941c6f17fb47c33188..1e80387cf4acb0ae0882802fa2d3cfaafac1650f 100644 (file)
@@ -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
index 56a8524adcd480760484bb6724290f02975f4a75..f64052ce1427128aaf5b5ad8519601b9efaadedd 100644 (file)
@@ -152,8 +152,8 @@ finally:
 
 '''
 # Dummy translation for Python's test_gettext.py module.
-# Copyright (C) 2000 BeOpen.com
-# Barry Warsaw <bwarsaw@beopen.com>, 2000.
+# Copyright (C) 2001 Python Software Foundation
+# Barry Warsaw <barry@python.org>, 2000.
 #
 msgid ""
 msgstr ""