DateParserDisplayTest.py is a debug tool but runs always, only run when debug

svn: r12157
This commit is contained in:
Benny Malengier 2009-02-28 09:19:39 +00:00
parent e498b18d52
commit 666df8e6f2

View File

@ -229,8 +229,9 @@ class DateParserDisplayTest(Tool.Tool):
#
#-------------------------------------------------------------------------
pmgr = PluginManager.get_instance()
pmgr.register_tool(
if __debug__:
pmgr = PluginManager.get_instance()
pmgr.register_tool(
name = 'test_for_date_parser_and_displayer',
category = Tool.TOOL_DEBUG,
tool_class = DateParserDisplayTest,