Use SBModule.GetDescription(SBStream) API to get the module description to match
against.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@121989 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/python_api/symbol-context/TestSymbolContext.py b/test/python_api/symbol-context/TestSymbolContext.py
index 488006c..c6848a9 100644
--- a/test/python_api/symbol-context/TestSymbolContext.py
+++ b/test/python_api/symbol-context/TestSymbolContext.py
@@ -60,15 +60,16 @@
         context = frame0.GetSymbolContext(lldb.eSymbolContextEverything)
         self.assertTrue(context.IsValid())
 
+        # Get the description of this module.
         module = context.GetModule()
-        self.expect(repr(module), "The module should match", exe=False,
+        stream = lldb.SBStream()
+        module.GetDescription(stream)
+        self.expect(stream.GetData(), "The module should match", exe=False,
             substrs = [os.path.join(self.mydir, 'a.out')])
-        #print "module:", module
 
         compileUnit = context.GetCompileUnit()
         self.expect(repr(compileUnit), "The compile unit should match", exe=False,
             substrs = [os.path.join(self.mydir, 'main.c')])
-        #print "compile unit:", compileUnit
 
         function = context.GetFunction()
         self.assertTrue(function.IsValid())