use correct __new__ method (closes #24552)
This commit is contained in:
parent
80f78a3efc
commit
d3a2a95125
|
@ -1043,7 +1043,7 @@ class AbstractPickleTests(unittest.TestCase):
|
||||||
# Issue 24552
|
# Issue 24552
|
||||||
global SimpleNewObj
|
global SimpleNewObj
|
||||||
save = SimpleNewObj
|
save = SimpleNewObj
|
||||||
o = object.__new__(SimpleNewObj)
|
o = SimpleNewObj.__new__(SimpleNewObj)
|
||||||
b = self.dumps(o, 4)
|
b = self.dumps(o, 4)
|
||||||
try:
|
try:
|
||||||
SimpleNewObj = 42
|
SimpleNewObj = 42
|
||||||
|
|
Loading…
Reference in New Issue