summaryrefslogtreecommitdiff
path: root/Lib/test/test_pep352.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-09-09 07:11:46 +0000
committerBrett Cannon <bcannon@gmail.com>2006-09-09 07:11:46 +0000
commitca2ca79d23645eb2ee457f64506d05f232c673c9 (patch)
tree674299e348769d9b15b109e1434b1398d048fd8b /Lib/test/test_pep352.py
parentaf57f6065f2131dad699667c11fdc9520a84986b (diff)
downloadcpython-git-ca2ca79d23645eb2ee457f64506d05f232c673c9.tar.gz
Remove the __unicode__ method from exceptions. Allows unicode() to be called
on exception classes. Would require introducing a tp_unicode slot to make it work otherwise. Fixes bug #1551432 and will be backported.
Diffstat (limited to 'Lib/test/test_pep352.py')
-rw-r--r--Lib/test/test_pep352.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_pep352.py b/Lib/test/test_pep352.py
index 251e0be0a8..b2322b0a3a 100644
--- a/Lib/test/test_pep352.py
+++ b/Lib/test/test_pep352.py
@@ -15,8 +15,7 @@ class ExceptionClassTests(unittest.TestCase):
self.failUnless(issubclass(Exception, object))
def verify_instance_interface(self, ins):
- for attr in ("args", "message", "__str__", "__unicode__", "__repr__",
- "__getitem__"):
+ for attr in ("args", "message", "__str__", "__repr__", "__getitem__"):
self.failUnless(hasattr(ins, attr), "%s missing %s attribute" %
(ins.__class__.__name__, attr))