testtools: Update to latest version.
[metze/samba/wip.git] / lib / testtools / testtools / run.py
index 72011c74cabdb7bdde1adae6a567acaa64108ef2..12d669c11a68d66bd22ec56f12bb5c344668c36d 100755 (executable)
@@ -269,7 +269,7 @@ class TestProgram(object):
                           help="Pattern to match tests ('test*.py' default)")
         parser.add_option('-t', '--top-level-directory', dest='top', default=None,
                           help='Top level directory of project (defaults to start directory)')
-        parser.add_option('-l', '--list', dest='listtests', default=False,
+        parser.add_option('-l', '--list', dest='listtests', default=False, action="store_true",
                           help='List tests rather than running them.')
         parser.add_option('--load-list', dest='load_list', default=None,
                           help='Specify a filename containing the test ids to use.')