From: Guido van Rossum Date: Sun, 14 Jan 2007 04:02:16 +0000 (+0000) Subject: Fix cPickle breakage due to last-minute change to the name of the 'long' type X-Git-Tag: v3.0a1~1272 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52d01787dcbb301555300c6c6b3df69c9450c8af;p=python Fix cPickle breakage due to last-minute change to the name of the 'long' type (it's not called 'int' :-). --- diff --git a/BROKEN_TESTS b/BROKEN_TESTS index f45d333b98..8814591f73 100644 --- a/BROKEN_TESTS +++ b/BROKEN_TESTS @@ -1,4 +1,3 @@ -test_descr -- can't pickle int objects?!?! -test_pickletools -- ??? +test_pickletools -- Test probably needs to be fixed test_socket -- OverflowError: can't convert negative value to unsigned int test_sqlite -- ??? diff --git a/Modules/cPickle.c b/Modules/cPickle.c index 4c55428817..98ab500aa3 100644 --- a/Modules/cPickle.c +++ b/Modules/cPickle.c @@ -2191,7 +2191,7 @@ save(Picklerobject *self, PyObject *args, int pers_save) goto finally; } break; - case 'l': + case 'i': if (type == &PyLong_Type) { res = save_long(self, args); goto finally;