summaryrefslogtreecommitdiff
path: root/Lib/test/test_repr.py
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Remove all tests that rely on deprecated-in-2.2 features of xrange objects.Fred Drake2002-05-021-8/+0
| | | | | "What's New in Python 2.2" documented that these would be removed in Python 2.3.
* Tighten up some warning filters, and break some dependencies on theTim Peters2002-04-161-3/+7
| | | | order in which the tests are normally run.
* SF Patch #494872 test repr() of a built-in moduleNeal Norwitz2001-12-291-0/+1
|
* Rename "dictionary" (type and constructor) to "dict".Tim Peters2001-10-291-1/+1
|
* SF patch #474590 -- RISC OS supportGuido van Rossum2001-10-241-7/+7
|
* 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.