1 """Check that we handle an ImportError in a special way when command script importing files."""
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"])
13 def test_rdar12586188_command(self
):
14 """Check that we handle an ImportError in a special way when command script importing files."""
18 """Check that we handle an ImportError in a special way when command script importing files."""
21 "command script import ./fail12586188.py --allow-reload",
23 substrs
=['raise ImportError("I do not want to be imported")'],
26 "command script import ./fail212586188.py --allow-reload",
28 substrs
=['raise ValueError("I do not want to be imported")'],