Python test fix attempt after r148360.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 Apr 2013 17:56:28 +0000 (17:56 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 Apr 2013 17:56:28 +0000 (17:56 +0000)
* Scripts/webkitpy/tool/multicommandtool_unittest.py:
(test_command_help):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@148362 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/webkitpy/tool/multicommandtool_unittest.py

index 8caad5c092d5b7e5dbc55e59c78f0739d82ce3f3..ddcf82ccfd7309edaeb6ab091ba36a7c34a9be8d 100644 (file)
@@ -1,3 +1,10 @@
+2013-04-13  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Python test fix attempt after r148360.
+
+        * Scripts/webkitpy/tool/multicommandtool_unittest.py:
+        (test_command_help):
+
 2013-04-13  Ryosuke Niwa  <rniwa@webkit.org>
 
         Merge AbstractDeclarativeCommand into Command as a comment suggests
index 1d15c7d747cb83d1aa3f88546f8814fe99cab9bb..101c04cf5943a1d7521f06613f629056d6889dd9 100644 (file)
@@ -172,8 +172,8 @@ See 'trivial-tool help COMMAND' for more information on a specific command.
 
 
     def test_command_help(self):
+        TrivialCommand.long_help = "LONG HELP"
         command_with_options = TrivialCommand(options=[make_option("--my_option")])
-        command_with_options.long_help = "LONG HELP"
         tool = TrivialTool(commands=[command_with_options])
         expected_subcommand_help = "trivial [options]   help text\n\nLONG HELP\n\nOptions:\n  --my_option=MY_OPTION\n\n"
         self._assert_tool_main_outputs(tool, ["tool", "help", "trivial"], expected_subcommand_help)