diff options
author | Guido van Rossum <guido@python.org> | 2001-12-19 16:38:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-12-19 16:38:29 (GMT) |
commit | 1444f67fa0248d80b5c6de14443e56d05b314227 (patch) | |
tree | 7a51d55ab6da0f94ebfed8299ac822147e89e0a7 /Lib/test | |
parent | 4f5b49fb56627c99defad8c6fdff869af796eed9 (diff) | |
download | cpython-1444f67fa0248d80b5c6de14443e56d05b314227.zip cpython-1444f67fa0248d80b5c6de14443e56d05b314227.tar.gz cpython-1444f67fa0248d80b5c6de14443e56d05b314227.tar.bz2 |
The test using class initarg failed, because it was lacking a
__safe_for_unpickling__ attribute.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/pickletester.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |