diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2011-01-03 17:00:11 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2011-01-03 17:00:11 (GMT) |
commit | 32e1d8340c05fa62ba51dbd942bdc09a21e65f6e (patch) | |
tree | 4523249e3c25efec0cc94a82a9392894282d3990 /Doc | |
parent | faa8c13ef43eda21a363524a7eb0ff1b361bbe67 (diff) | |
download | cpython-32e1d8340c05fa62ba51dbd942bdc09a21e65f6e.zip cpython-32e1d8340c05fa62ba51dbd942bdc09a21e65f6e.tar.gz cpython-32e1d8340c05fa62ba51dbd942bdc09a21e65f6e.tar.bz2 |
Enable unittest.TestCase to be instantiated without providing a method name.
Changed unittestgui to show number of discovered tests in the status bar.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/unittest.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index ad6d314..564ff72 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -721,6 +721,11 @@ Test cases Here, we create two instances of :class:`WidgetTestCase`, each of which runs a single test. + .. versionchanged:: + `TestCase` can be instantiated successfully without providing a method + name. This makes it easier to experiment with `TestCase` from the + interactive interpreter. + *methodName* defaults to :meth:`runTest`. :class:`TestCase` instances provide three groups of methods: one group used |