summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-03-01 21:26:04 +0200
committerEzio Melotti <ezio.melotti@gmail.com>2013-03-01 21:26:04 +0200
commitff0deb0529e4d1419f020ef1939180fae7ed0a4f (patch)
tree606c93d9b5d5d3edbbee7e384e484f5ad8f79990
parentc86e866b98b08e257be8abe16dc9c45052dba1f0 (diff)
downloadcpython-git-ff0deb0529e4d1419f020ef1939180fae7ed0a4f.tar.gz
Fix markup in unittest doc.
-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 d92b10e6cb..c3170c073f 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -584,7 +584,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):
@@ -603,7 +603,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'
@@ -614,7 +614,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):
@@ -633,7 +633,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):