use correct __new__ method (closes #24552)

This commit is contained in:
Benjamin Peterson 2015-07-02 16:58:22 -05:00
parent 80f78a3efc
commit d3a2a95125
1 changed files with 1 additions and 1 deletions

View File

@ -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