]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Convert a couple of comments to docstrings -- PyUnit can use these when
authorFred Drake <fdrake@acm.org>
Mon, 14 May 2001 19:15:23 +0000 (19:15 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 14 May 2001 19:15:23 +0000 (19:15 +0000)
the regression test is run in verbose mode.

Lib/test/test_pprint.py

index 25d806d0de98b44edd8dcfe4d2dcb21e629c61a0..ba53ee8a7c446b66309abe6cbd6f620069e44284 100644 (file)
@@ -12,7 +12,7 @@ class QueryTestCase(unittest.TestCase):
         self.a[-12] = self.b
 
     def test_basic(self):
-        # Verify that .isrecursive() and .isreadable() work w/o recursion.
+        """Verify .isrecursive() and .isreadable() w/o recursion."""
         verify = self.assert_
         for safe in (2, 2.0, 2j, "abc", [3], (2,2), {3: 3}, u"yaddayadda",
                      self.a, self.b):
@@ -22,7 +22,7 @@ class QueryTestCase(unittest.TestCase):
                    "expected isreadable for " + `safe`)
 
     def test_knotted(self):
-        # Verify that .isrecursive() and .isreadable() work w/ recursion.
+        """Verify .isrecursive() and .isreadable() w/ recursion."""
         # Tie a knot.
         self.b[67] = self.a
         # Messy dict.