[Lldb-commits] [lldb] r353130 - [Python2 to Python 3] Fix print -> print().

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 4 16:59:57 PST 2019


Author: davide
Date: Mon Feb  4 16:59:57 2019
New Revision: 353130

URL: http://llvm.org/viewvc/llvm-project?rev=353130&view=rev
Log:
[Python2 to Python 3] Fix print -> print().

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py?rev=353130&r1=353129&r2=353130&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py Mon Feb  4 16:59:57 2019
@@ -170,28 +170,28 @@ class TestScriptedResolver(TestBase):
         # Make a breakpoint that has no __get_depth__, check that that is converted to eSearchDepthModule:
         bkpt = target.BreakpointCreateFromScript("resolver.Resolver", extra_args, module_list, file_list)
         self.assertTrue(bkpt.GetNumLocations() > 0, "Resolver got no locations.")
-        self.expect("script print resolver.Resolver.got_files", substrs=["2"], msg="Was only passed modules")
+        self.expect("script print(resolver.Resolver.got_files)", substrs=["2"], msg="Was only passed modules")
         
         # Make a breakpoint that asks for modules, check that we didn't get any files:
         bkpt = target.BreakpointCreateFromScript("resolver.ResolverModuleDepth", extra_args, module_list, file_list)
         self.assertTrue(bkpt.GetNumLocations() > 0, "ResolverModuleDepth got no locations.")
-        self.expect("script print resolver.Resolver.got_files", substrs=["2"], msg="Was only passed modules")
+        self.expect("script print(resolver.Resolver.got_files)", substrs=["2"], msg="Was only passed modules")
         
         # Make a breakpoint that asks for compile units, check that we didn't get any files:
         bkpt = target.BreakpointCreateFromScript("resolver.ResolverCUDepth", extra_args, module_list, file_list)
         self.assertTrue(bkpt.GetNumLocations() > 0, "ResolverCUDepth got no locations.")
-        self.expect("script print resolver.Resolver.got_files", substrs=["1"], msg="Was passed compile units")
+        self.expect("script print(resolver.Resolver.got_files)", substrs=["1"], msg="Was passed compile units")
 
         # Make a breakpoint that returns a bad value - we should convert that to "modules" so check that:
         bkpt = target.BreakpointCreateFromScript("resolver.ResolverBadDepth", extra_args, module_list, file_list)
         self.assertTrue(bkpt.GetNumLocations() > 0, "ResolverBadDepth got no locations.")
-        self.expect("script print resolver.Resolver.got_files", substrs=["2"], msg="Was only passed modules")
+        self.expect("script print(resolver.Resolver.got_files)", substrs=["2"], msg="Was only passed modules")
 
         # Make a breakpoint that searches at function depth:
         bkpt = target.BreakpointCreateFromScript("resolver.ResolverFuncDepth", extra_args, module_list, file_list)
         self.assertTrue(bkpt.GetNumLocations() > 0, "ResolverFuncDepth got no locations.")
-        self.expect("script print resolver.Resolver.got_files", substrs=["3"], msg="Was only passed modules")
-        self.expect("script print resolver.Resolver.func_list", substrs=["break_on_me", "main", "test_func"], msg="Saw all the functions")
+        self.expect("script print(resolver.Resolver.got_files)", substrs=["3"], msg="Was only passed modules")
+        self.expect("script print(resolver.Resolver.func_list)", substrs=["break_on_me", "main", "test_func"], msg="Saw all the functions")
 
     def do_test_cli(self):
         target = self.make_target_and_import()




More information about the lldb-commits mailing list