Issue #6615: logging: Used weak references in internal handler list. Thanks to flox...
[python.git] / Lib / test / test_pickletools.py
blob3e5b35ab588695aac34387556dc8eb16f9842135
1 import pickle
2 import pickletools
3 from test import test_support
4 from test.pickletester import AbstractPickleTests
5 from test.pickletester import AbstractPickleModuleTests
7 class OptimizedPickleTests(AbstractPickleTests, AbstractPickleModuleTests):
9 def dumps(self, arg, proto=0, fast=0):
10 return pickletools.optimize(pickle.dumps(arg, proto))
12 def loads(self, buf):
13 return pickle.loads(buf)
15 module = pickle
16 error = KeyError
18 def test_main():
19 test_support.run_unittest(OptimizedPickleTests)
20 test_support.run_doctest(pickletools)
23 if __name__ == "__main__":
24 test_main()