[Lldb-commits] [lldb] r132367 - /lldb/trunk/test/lldbtest.py
Johnny Chen
johnny.chen at apple.com
Tue May 31 15:16:51 PDT 2011
Author: johnny
Date: Tue May 31 17:16:51 2011
New Revision: 132367
URL: http://llvm.org/viewvc/llvm-project?rev=132367&view=rev
Log:
Move some comments to the docstrings.
Modified:
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=132367&r1=132366&r2=132367&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Tue May 31 17:16:51 2011
@@ -195,29 +195,21 @@
VARIABLES_DISPLAYED_CORRECTLY = "Variable(s) displayed correctly"
-#
-# And a generic "Command '%s' returns successfully" message generator.
-#
def CMD_MSG(str):
+ '''A generic "Command '%s' returns successfully" message generator.'''
return "Command '%s' returns successfully" % str
-#
-# And a generic "'%s' returns expected result" message generator if exe.
-# Otherwise, it's "'%s' matches expected result"
-#
def EXP_MSG(str, exe):
+ '''A generic "'%s' returns expected result" message generator if exe.
+ Otherwise, it generates "'%s' matches expected result" message.'''
return "'%s' %s expected result" % (str, 'returns' if exe else 'matches')
-#
-# And a generic "Value of setting '%s' is correct" message generator.
-#
def SETTING_MSG(setting):
+ '''A generic "Value of setting '%s' is correct" message generator.'''
return "Value of setting '%s' is correct" % setting
-#
-# Returns an env variable array from the os.environ map object.
-#
def EnvArray():
+ """Returns an env variable array from the os.environ map object."""
return map(lambda k,v: k+"="+v, os.environ.keys(), os.environ.values())
def line_number(filename, string_to_match):
More information about the lldb-commits
mailing list