From 8eff7b011ddf62da6287c7cc769ef8a2c86f7d7f Mon Sep 17 00:00:00 2001 From: "markh%activestate.com" Date: Sun, 5 Aug 2001 08:29:46 +0000 Subject: [PATCH] Fix error in exception, which should never be hit (but _is_ hit for Python 2.2 - need to sort that one out later!) Not part of the build. git-svn-id: svn://10.0.0.236/trunk@100371 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/python/xpcom/test/test_test_component.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mozilla/extensions/python/xpcom/test/test_test_component.py b/mozilla/extensions/python/xpcom/test/test_test_component.py index df113b723f6..8bb82eb1ab3 100644 --- a/mozilla/extensions/python/xpcom/test/test_test_component.py +++ b/mozilla/extensions/python/xpcom/test/test_test_component.py @@ -61,6 +61,7 @@ def test_attribute_failure(ob, attr_name, new_value, expected_exception): print_error("*** Setting attribute '%s' to '%r' didnt yield an exception!" % (attr_name, new_value) ) except: exc_typ = sys.exc_info()[0] + exc_val = sys.exc_info()[1] ok = issubclass(exc_typ, expected_exception) if not ok: print_error("*** Wrong exception setting '%s' to '%r'- got '%s: %s', expected '%s'" % (attr_name, new_value, exc_typ, exc_val, expected_exception))