commit | 3e667d5452ce480eee2d4125c1209630e02ac574 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Tue Feb 04 21:47:44 2003 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Tue Feb 04 21:47:44 2003 +0000 |
tree | 521455459e6c62ba4c07aa8d698ef2a6654eaa36 | |
parent | 5042da6b1e567039951cdfe6b822dd725012bdf1 [diff] |
cPickle: exempt two_tuple from GC -- it's a speed hack, and doesn't 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.