summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_repr.py
Commit message (Collapse)AuthorAgeFilesLines
* Change repr() of a new-style class to say <class 'ClassName'> ratherGuido van Rossum2001-09-251-1/+1
| | | | | | than <type 'ClassName'>. Exception: if it's a built-in type or an extension type, continue to call it <type 'ClassName>. Call me a wimp, but I don't want to break more user code than necessary.
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-3/+8
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* limit prefix test for lambdaJeremy Hylton2001-09-141-1/+1
| | | | | the compiler package generates a module-unique trailing suffix for each lambda
* LongReprTest fails on the Mac because it uses filenames with more thanJack Jansen2001-09-051-1/+2
| | | | | | 32 characters per component. This makes mkdir() calls and such fail with EINVAL. For now I am disabling the test on the Mac, and I'll open a bugreport.
* Add a test for the final branch in repr.Repr.repr1(), which deals withGuido van Rossum2001-09-051-0/+5
| | | | a default repr() that's longer than 20 characters.
* Added lots of tests for reprs of "simple" objects, such as file,Barry Warsaw2001-08-241-0/+156
| | | | | | | lambda (anonymous functions?), function, xrange, buffer, cell (need to fill in), and (some) descriptor types. Also added a new test case for testing repr truncation fixes.
* Whitespace normalization.Tim Peters2001-08-091-3/+3
|
* Test for the repr module, contributed by Nick Mathewson.Fred Drake2001-07-191-0/+108
This closes SF patch #440826.