summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_copy_reg.py
Commit message (Collapse)AuthorAgeFilesLines
* cPickle: exempt two_tuple from GC -- it's a speed hack, and doesn'tTim Peters2003-02-041-22/+2
| | | | | | | | | | | | guarantee to keep valid pointers in its slots. tests: Moved ExtensionSaver from test_copy_reg into pickletester, and use it both places. Once extension codes get assigned, it won't be safe to overwrite them willy nilly in test suites, and ExtensionSaver does a thorough job of undoing any possible damage. Beefed up the EXT[124] tests a bit, to check the smallest and largest codes in each opcode's range too.
* Added basic tests of copy_reg's extension registry.Tim Peters2003-02-041-0/+78
|
* Test that True can be copied.Martin v. Löwis2003-01-261-0/+4
|
* 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. :)
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+6
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* Convert copy_reg test to PyUnit.Fred Drake2001-05-221-29/+19
|
* Test the exception-raising for error cases in copy_reg.Fred Drake2000-10-111-0/+35