summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-07-02 21:58:22 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-07-02 21:58:22 (GMT)
commitd3a2a95125167564aed33286933dd224a1f47b7e (patch)
tree67d6585a3401196b6d9e414813ef2fadf004f3c4
parent80f78a3efcd0836c4495a833fc24ef20d9ba19b2 (diff)
downloadcpython-d3a2a95125167564aed33286933dd224a1f47b7e.zip
cpython-d3a2a95125167564aed33286933dd224a1f47b7e.tar.gz
cpython-d3a2a95125167564aed33286933dd224a1f47b7e.tar.bz2
use correct __new__ method (closes #24552)
-rw-r--r--Lib/test/pickletester.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py
index 1682ab1..af34d23 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