summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pprint.py
Commit message (Collapse)AuthorAgeFilesLines
* Add an experimental mechanism to support extending the pprint formatting.Fred Drake2002-04-021-0/+21
| | | | Partly responds to SF bug #505152.
* __format(): Applied SF patch #482003 by Skip to fix multiline dictBarry Warsaw2001-11-281-0/+19
| | | | | | | | output. Patch includes additional test case test_basic_line_wrap(). This patch is a candidate for Python 2.1.2.
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+7
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* Patch #445762: Support --disable-unicodeMartin v. Löwis2001-08-171-3/+8
| | | | | | | | - Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled - check for Py_USING_UNICODE in all places that use Unicode functions - disables unicode literals, and the builtin functions - add the types.StringTypes list - remove Unicode literals from most tests.
* Convert a couple of comments to docstrings -- PyUnit can use these whenFred Drake2001-05-141-2/+2
| | | | the regression test is run in verbose mode.
* pprint's workhorse _safe_repr() function took time quadratic in the # ofTim Peters2001-05-141-1/+17
| | | | | | | elements when crunching a list, dict or tuple. Now takes linear time instead -- huge speedup for even moderately large containers, and the code is notably simpler too. Added some basic "is the output correct?" tests to test_pprint.
* Convert the pprint test to use PyUnit.Fred Drake2001-05-141-35/+57
|
* SF bug[ #423781: pprint.isrecursive() broken.Tim Peters2001-05-141-0/+36