[AMDGPU] Add True16 register classes.
[llvm-project.git] / lldb / test / API / commands / command / script / import / rdar-12586188 / TestRdar12586188.py
blob61c10dc17260609bdf36feb6cebdcd688e88f917
1 """Check that we handle an ImportError in a special way when command script importing files."""
4 import lldb
5 from lldbsuite.test.decorators import *
6 from lldbsuite.test.lldbtest import *
7 from lldbsuite.test import lldbutil
10 class Rdar12586188TestCase(TestBase):
11 @add_test_categories(["pyapi"])
12 @no_debug_info_test
13 def test_rdar12586188_command(self):
14 """Check that we handle an ImportError in a special way when command script importing files."""
15 self.run_test()
17 def run_test(self):
18 """Check that we handle an ImportError in a special way when command script importing files."""
20 self.expect(
21 "command script import ./fail12586188.py --allow-reload",
22 error=True,
23 substrs=['raise ImportError("I do not want to be imported")'],
25 self.expect(
26 "command script import ./fail212586188.py --allow-reload",
27 error=True,
28 substrs=['raise ValueError("I do not want to be imported")'],