From: W. Trevor King Date: Fri, 29 Jan 2010 12:52:21 +0000 (-0500) Subject: Add version information to test.py stderr for easier error reproduction X-Git-Tag: 1.0.0~59^2~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=98f6c220071d6ef65bd254bc24935d0be76cf61a;p=be.git Add version information to test.py stderr for easier error reproduction --- diff --git a/test.py b/test.py index 5f00ac1..e6e5c2c 100644 --- a/test.py +++ b/test.py @@ -26,6 +26,7 @@ import libbe libbe.TESTING = True from libbe.util.tree import Tree from libbe.util.plugin import import_by_name +from libbe.version import version def python_tree(root_path='libbe', root_modname='libbe'): tree = Tree() @@ -89,6 +90,7 @@ those modules and their submodules. For example:: parser.add_option('-q', '--quiet', action='store_true', default=False, help='Run unittests in quiet mode (verbosity 1).') options,args = parser.parse_args() + print >> sys.stderr, 'Testing BE\n%s' % version(verbose=True) verbosity = 2 if options.quiet == True: