From: Guido van Rossum Date: Wed, 19 Dec 2001 16:38:29 +0000 (+0000) Subject: The test using class initarg failed, because it was lacking a X-Git-Tag: v2.2.1c1~301 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1444f67fa0248d80b5c6de14443e56d05b314227;p=python The test using class initarg failed, because it was lacking a __safe_for_unpickling__ attribute. --- diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 01e7a938e2..71640dbfc5 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -14,6 +14,9 @@ class myint(int): self.str = str(x) class initarg(C): + + __safe_for_unpickling__ = 1 + def __init__(self, a, b): self.a = a self.b = b