Made it safe to re-import a Python module, allowing
authorSean Callanan <scallanan@apple.com>
Wed, 25 Apr 2012 00:21:42 +0000 (00:21 +0000)
committerSean Callanan <scallanan@apple.com>
Wed, 25 Apr 2012 00:21:42 +0000 (00:21 +0000)
the same test to be run multiple times in the same
session.

llvm-svn: 155511

lldb/test/expression_command/issue_11588/Test11588.py

index b4aea2d..59393bb 100644 (file)
@@ -37,7 +37,7 @@ class Issue11581TestCase(TestBase):
         self.runCmd("next", RUN_SUCCEEDED)
         self.runCmd("next", RUN_SUCCEEDED)
 
-        self.runCmd("command script import s11588.py")
+        self.runCmd("command script import --allow-reload s11588.py")
         self.runCmd("type synthetic add --python-class s11588.Issue11581SyntheticProvider StgClosure")
 
         self.expect("print *((StgClosure*)(r14-1))",