From d3a2a95125167564aed33286933dd224a1f47b7e Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 2 Jul 2015 16:58:22 -0500 Subject: [PATCH] use correct __new__ method (closes #24552) --- Lib/test/pickletester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 1682ab151db..af34d23d375 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