mirror of https://github.com/python/cpython
fix typo; thanks to Justin Watt from docs@
This commit is contained in:
parent
27a4918c99
commit
2d71e5c6b9
|
@ -352,7 +352,7 @@ The simplest :class:`TestCase` subclass will simply override the
|
||||||
widget = Widget('The widget')
|
widget = Widget('The widget')
|
||||||
self.assertEqual(widget.size(), (50, 50), 'incorrect default size')
|
self.assertEqual(widget.size(), (50, 50), 'incorrect default size')
|
||||||
|
|
||||||
Note that in order to test something, we use the one of the :meth:`assert\*`
|
Note that in order to test something, we use one of the :meth:`assert\*`
|
||||||
methods provided by the :class:`TestCase` base class. If the test fails, an
|
methods provided by the :class:`TestCase` base class. If the test fails, an
|
||||||
exception will be raised, and :mod:`unittest` will identify the test case as a
|
exception will be raised, and :mod:`unittest` will identify the test case as a
|
||||||
:dfn:`failure`. Any other exceptions will be treated as :dfn:`errors`. This
|
:dfn:`failure`. Any other exceptions will be treated as :dfn:`errors`. This
|
||||||
|
|
Loading…
Reference in New Issue