New submission from Michael Foord <mich...@voidspace.org.uk>:

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

    if __name__ == '__main__':
       unittest.main(verbosity=2)

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 <rep...@bugs.python.org>
<http://bugs.python.org/issue5995>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to