summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2001-08-24 19:11:57 (GMT)
committerBarry Warsaw <barry@python.org>2001-08-24 19:11:57 (GMT)
commit191487351abb5d2b7daf9d839ca2b3a3c7fdc07b (patch)
tree4c20adb2efe0d0dc21b6bc8937d1d09824a3e0d3 /Lib
parent70d449154046cf97af6b2c94d68ae12af4a965df (diff)
downloadcpython-191487351abb5d2b7daf9d839ca2b3a3c7fdc07b.zip
cpython-191487351abb5d2b7daf9d839ca2b3a3c7fdc07b.tar.gz
cpython-191487351abb5d2b7daf9d839ca2b3a3c7fdc07b.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_extcall.py8
-rw-r--r--Lib/test/test_gettext.py4
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 <bwarsaw@beopen.com>, 2000.
+# Copyright (C) 2001 Python Software Foundation
+# Barry Warsaw <barry@python.org>, 2000.
#
msgid ""
msgstr ""