[Python-checkins] cpython (3.2): Fix markup in unittest doc.

ezio.melotti python-checkins at python.org
Fri Mar 1 20:28:44 CET 2013


http://hg.python.org/cpython/rev/23669bea387e
changeset: 82447:23669bea387e
branch: 3.2
parent: 82442:c65e98ce1a05
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Fri Mar 01 21:26:04 2013 +0200
summary:
 Fix markup in unittest doc.
files:
 Doc/library/unittest.rst | 8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -609,7 +609,7 @@
 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):
 
@@ -628,7 +628,7 @@
 # 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'
@@ -639,7 +639,7 @@
 
 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):
@@ -658,7 +658,7 @@
 
 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):
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /