8 copy_reg
.pickle(C
, None, None)
10 print "Caught expected TypeError:"
13 print "Failed to catch expected TypeError when registering a class type."
18 copy_reg
.pickle(type(1), "not a callable")
20 print "Caught expected TypeError:"
23 print "Failed to catch TypeError " \
24 "when registering a non-callable reduction function."
29 copy_reg
.pickle(type(1), int, "not a callable")
31 print "Caught expected TypeError:"
34 print "Failed to catch TypeError " \
35 "when registering a non-callable constructor."