commit | 1444f67fa0248d80b5c6de14443e56d05b314227 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Dec 19 16:38:29 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Dec 19 16:38:29 2001 +0000 |
tree | 7a51d55ab6da0f94ebfed8299ac822147e89e0a7 | |
parent | 4f5b49fb56627c99defad8c6fdff869af796eed9 [diff] |
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 01e7a93..71640db 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py
@@ -14,6 +14,9 @@ self.str = str(x) class initarg(C): + + __safe_for_unpickling__ = 1 + def __init__(self, a, b): self.a = a self.b = b