summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pprint.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-22 19:45:32 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-22 19:45:32 (GMT)
commit32c2ae7f4ac0594dc180efc8440f6a62eee164d6 (patch)
tree0962697cfac9fe58c1373dfd6e57b9fd11709fdf /Lib/test/test_pprint.py
parent2e8bba5c2135e58dc2f32ff1062c39415bb266c4 (diff)
downloadcpython-32c2ae7f4ac0594dc180efc8440f6a62eee164d6.zip
cpython-32c2ae7f4ac0594dc180efc8440f6a62eee164d6.tar.gz
cpython-32c2ae7f4ac0594dc180efc8440f6a62eee164d6.tar.bz2
Standardize behavior: no docstrings in test functions.
Diffstat (limited to 'Lib/test/test_pprint.py')
-rw-r--r--Lib/test/test_pprint.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/Lib/test/test_pprint.py b/Lib/test/test_pprint.py
index 293b75f..e31e583 100644
--- a/Lib/test/test_pprint.py
+++ b/Lib/test/test_pprint.py
@@ -16,7 +16,7 @@ class QueryTestCase(unittest.TestCase):
self.a[-12] = self.b
def test_basic(self):
- """Verify .isrecursive() and .isreadable() 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}, uni("yaddayadda"),
self.a, self.b):
@@ -26,7 +26,7 @@ class QueryTestCase(unittest.TestCase):
"expected isreadable for " + `safe`)
def test_knotted(self):
- """Verify .isrecursive() and .isreadable() w/ recursion."""
+ # Verify .isrecursive() and .isreadable() w/ recursion
# Tie a knot.
self.b[67] = self.a
# Messy dict.
@@ -51,7 +51,7 @@ class QueryTestCase(unittest.TestCase):
"expected isreadable for " + `safe`)
def test_unreadable(self):
- """Not recursive but not readable anyway."""
+ # Not recursive but not readable anyway
verify = self.assert_
for unreadable in type(3), pprint, pprint.isrecursive:
verify(not pprint.isrecursive(unreadable),
@@ -60,7 +60,7 @@ class QueryTestCase(unittest.TestCase):
"expected not isreadable for " + `unreadable`)
def test_same_as_repr(self):
- "Simple objects and small containers that should be same as repr()."
+ # Simple objects and small containers that should be same as repr()
verify = self.assert_
for simple in (0, 0L, 0+0j, 0.0, "", uni(""), (), [], {}, verify, pprint,
-6, -6L, -6-6j, -1.5, "x", uni("x"), (3,), [3], {3: 6},
@@ -77,7 +77,7 @@ class QueryTestCase(unittest.TestCase):
def test_basic_line_wrap(self):
- """verify basic line-wrapping operation"""
+ # verify basic line-wrapping operation
o = {'RPM_cal': 0,
'RPM_cal2': 48059,
'Speed_cal': 0,
@@ -105,6 +105,7 @@ class QueryTestCase(unittest.TestCase):
class DottedPrettyPrinter(pprint.PrettyPrinter):
+
def format(self, object, context, maxlevels, level):
if isinstance(object, str):
if ' ' in object: