diff --git a/extensions/python/xpcom/test/test_test_component.py b/extensions/python/xpcom/test/test_test_component.py index df113b723f62..8bb82eb1ab38 100644 --- a/extensions/python/xpcom/test/test_test_component.py +++ b/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))