mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
The test using class initarg failed, because it was lacking a
__safe_for_unpickling__ attribute.
This commit is contained in:
parent
4f5b49fb56
commit
1444f67fa0
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue