summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_copy_reg.py
Commit message (Collapse)AuthorAgeFilesLines
* Revert copy_reg -> copyreg rename.Georg Brandl2008-05-201-0/+121
|
* Added module stub for copy_reg renaming in 3.0.Alexandre Vassalotti2008-05-111-121/+0
| | | | | | Renamed copy_reg to copyreg in the standard library, to avoid spurious warnings and ease later merging to py3k branch. Public documentation remains intact.
* Patch #1462313, bug #1443328: the pickle modules now can handle classesGeorg Brandl2006-03-311-0/+29
| | | | that have __private names in their __slots__.
* 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