From 1444f67fa0248d80b5c6de14443e56d05b314227 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 19 Dec 2001 16:38:29 +0000 Subject: The test using class initarg failed, because it was lacking a __safe_for_unpickling__ attribute. --- Lib/test/pickletester.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 01e7a93..71640db 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 -- cgit v0.12