Commit d3a2a951 authored by Benjamin Peterson's avatar Benjamin Peterson

use correct __new__ method (closes #24552)

parent 80f78a3e
...@@ -1043,7 +1043,7 @@ class AbstractPickleTests(unittest.TestCase): ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment