1 """Check that we handle an ImportError in a special way when command script importing files."""
6 from lldbsuite.test.decorators import *
7 from lldbsuite.test.lldbtest import *
8 from lldbsuite.test import lldbutil
11 class Rdar12586188TestCase(TestBase):
13 mydir = TestBase.compute_mydir(__file__)
15 @add_test_categories(['pyapi'])
17 def test_rdar12586188_command(self):
18 """Check that we handle an ImportError in a special way when command script importing files."""
22 """Check that we handle an ImportError in a special way when command script importing files."""
25 "command script import ./fail12586188.py --allow-reload",
27 substrs=['raise ImportError("I do not want to be imported")'])
29 "command script import ./fail212586188.py --allow-reload",
31 substrs=['raise ValueError("I do not want to be imported")'])