diff options
| author | Michael Foord <fuzzyman@voidspace.org.uk> | 2011-01-03 17:00:11 +0000 |
|---|---|---|
| committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2011-01-03 17:00:11 +0000 |
| commit | 32e1d8340c05fa62ba51dbd942bdc09a21e65f6e (patch) | |
| tree | 4523249e3c25efec0cc94a82a9392894282d3990 /Doc/library/unittest.rst | |
| parent | faa8c13ef43eda21a363524a7eb0ff1b361bbe67 (diff) | |
| download | cpython-git-32e1d8340c05fa62ba51dbd942bdc09a21e65f6e.tar.gz | |
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/library/unittest.rst')
| -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 ad6d31405e..564ff72b7d 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 |
