From: Benjamin Peterson Date: Thu, 2 Jul 2015 21:58:22 +0000 (-0500) Subject: use correct __new__ method (closes #24552) X-Git-Tag: v3.5.0b3~16^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3a2a95125167564aed33286933dd224a1f47b7e;p=thirdparty%2FPython%2Fcpython.git use correct __new__ method (closes #24552) --- diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 1682ab151dbe..af34d23d3756 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -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