summaryrefslogtreecommitdiffstats
path: root/lldb/third_party/Python/module
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/third_party/Python/module')
-rw-r--r--lldb/third_party/Python/module/unittest2/unittest2/case.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/third_party/Python/module/unittest2/unittest2/case.py b/lldb/third_party/Python/module/unittest2/unittest2/case.py
index 29103c8b700..485cef09c22 100644
--- a/lldb/third_party/Python/module/unittest2/unittest2/case.py
+++ b/lldb/third_party/Python/module/unittest2/unittest2/case.py
@@ -510,7 +510,7 @@ class TestCase(unittest.TestCase):
excName = excClass.__name__
else:
excName = str(excClass)
- raise self.failureException, "%s not raised" % excName
+ raise self.failureException("%s not raised" % excName)
def _getAssertEqualityFunc(self, first, second):
"""Get a detailed comparison function for the types of the two args.
@@ -1028,7 +1028,7 @@ class TestCase(unittest.TestCase):
excName = expected_exception.__name__
else:
excName = str(expected_exception)
- raise self.failureException, "%s not raised" % excName
+ raise self.failureException("%s not raised" % excName)
def assertRegexpMatches(self, text, expected_regexp, msg=None):
OpenPOWER on IntegriCloud