ensure OutcomeExceptions like skip/fail have initialized exception attributes

This commit is contained in:
Ronny Pfannschmidt
2013-01-27 02:06:19 +01:00
parent 51b40dd22c
commit 570688f701
3 changed files with 7 additions and 0 deletions

View File

@@ -364,6 +364,7 @@ class OutcomeException(Exception):
contain info about test and collection outcomes.
"""
def __init__(self, msg=None, pytrace=True):
super(OutcomeException, self).__init__(msg)
self.msg = msg
self.pytrace = pytrace