summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py b/lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py
index ce3a679fdc9..876a149eada 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py
@@ -667,10 +667,10 @@ class FileHandleTestCase(lldbtest.TestBase):
@add_test_categories(['pyapi'])
def test_exceptions(self):
- self.assertRaises(TypeError, lldb.SBFile, None)
- self.assertRaises(TypeError, lldb.SBFile, "ham sandwich")
+ self.assertRaises(Exception, lldb.SBFile, None)
+ self.assertRaises(Exception, lldb.SBFile, "ham sandwich")
if sys.version_info[0] < 3:
- self.assertRaises(TypeError, lldb.SBFile, ReallyBadIO())
+ self.assertRaises(Exception, lldb.SBFile, ReallyBadIO())
else:
self.assertRaises(OhNoe, lldb.SBFile, ReallyBadIO())
error, n = lldb.SBFile(BadIO()).Write(b"FOO")
OpenPOWER on IntegriCloud