mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
use correct __new__ method (closes #24552)
This commit is contained in:
parent
80f78a3efc
commit
d3a2a95125
1 changed files with 1 additions and 1 deletions
|
@ -1043,7 +1043,7 @@ class AbstractPickleTests(unittest.TestCase):
|
|||
# Issue 24552
|
||||
global SimpleNewObj
|
||||
save = SimpleNewObj
|
||||
o = object.__new__(SimpleNewObj)
|
||||
o = SimpleNewObj.__new__(SimpleNewObj)
|
||||
b = self.dumps(o, 4)
|
||||
try:
|
||||
SimpleNewObj = 42
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue