]> granicus.if.org Git - python/commitdiff
The test using class initarg failed, because it was lacking a
authorGuido van Rossum <guido@python.org>
Wed, 19 Dec 2001 16:38:29 +0000 (16:38 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 19 Dec 2001 16:38:29 +0000 (16:38 +0000)
__safe_for_unpickling__ attribute.

Lib/test/pickletester.py

index 01e7a938e2cf859418b3bae36e206a1d8c1d946f..71640dbfc5aed603bc0a2743ce60c31f42d73f80 100644 (file)
@@ -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