summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-03-01 19:28:23 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-03-01 19:28:23 (GMT)
commitbf0428ebed9f2358004b41b35ea27fb4ccd2ad50 (patch)
treea662b1962c7707a22c5da2dc0105e1db7b5eadcf /Doc/library/unittest.rst
parent4b843a7492af142c9213c8eae9536ea1e9b25e65 (diff)
parentaba4581ce3434dc24095d7203e2e039e0e3aa431 (diff)
downloadcpython-bf0428ebed9f2358004b41b35ea27fb4ccd2ad50.zip
cpython-bf0428ebed9f2358004b41b35ea27fb4ccd2ad50.tar.gz
cpython-bf0428ebed9f2358004b41b35ea27fb4ccd2ad50.tar.bz2
Merge markup fixes in unittest doc from 3.3.
Diffstat (limited to 'Doc/library/unittest.rst')
-rw-r--r--Doc/library/unittest.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 00eaa53..0b676af 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -476,7 +476,7 @@ that is broken and will fail, but shouldn't be counted as a failure on a
Skipping a test is simply a matter of using the :func:`skip` :term:`decorator`
or one of its conditional variants.
-Basic skipping looks like this: ::
+Basic skipping looks like this::
class MyTestCase(unittest.TestCase):
@@ -495,7 +495,7 @@ Basic skipping looks like this: ::
# windows specific testing code
pass
-This is the output of running the example above in verbose mode: ::
+This is the output of running the example above in verbose mode::
test_format (__main__.MyTestCase) ... skipped 'not supported in this library version'
test_nothing (__main__.MyTestCase) ... skipped 'demonstrating skipping'
@@ -506,7 +506,7 @@ This is the output of running the example above in verbose mode: ::
OK (skipped=3)
-Classes can be skipped just like methods: ::
+Classes can be skipped just like methods::
@unittest.skip("showing class skipping")
class MySkippedTestCase(unittest.TestCase):
@@ -525,7 +525,7 @@ Expected failures use the :func:`expectedFailure` decorator. ::
It's easy to roll your own skipping decorators by making a decorator that calls
:func:`skip` on the test when it wants it to be skipped. This decorator skips
-the test unless the passed object has a certain attribute: ::
+the test unless the passed object has a certain attribute::
def skipUnlessHasattr(obj, attr):
if hasattr(obj, attr):