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
))
13 return pickle
.loads(buf
)
19 test_support
.run_unittest(OptimizedPickleTests
)
20 test_support
.run_doctest(pickletools
)
23 if __name__
== "__main__":