[New-bugs-announce] [issue5995] unittest command line behaviour

Michael Foord report at bugs.python.org
Mon May 11 12:59:48 CEST 2009

New submission from Michael Foord <michael at voidspace.org.uk>:

This patch adds a verbosity keyword argument to unittest.main - so you
can do:

    if __name__ == '__main__':

It also has a minor fix allowing you to specify test modules / classes
from the command line. This enables unittest to be used like this:

    python -m unittest test_module
    python -m unittest test_module.TestClass

Which is quite funky.

assignee: michael.foord
components: Library (Lib)
files: unittest.patch
keywords: easy, needs review, patch, patch
messages: 87571
nosy: michael.foord
severity: normal
stage: patch review
status: open
title: unittest command line behaviour
type: feature request
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file13956/unittest.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list