[Python-checkins] cpython (3.4): use correct __new__ method (closes #24552)
benjamin.peterson
python-checkins at python.org
Thu Jul 2 23:59:17 CEST 2015
https://hg.python.org/cpython/rev/978bc1ff43a7
changeset: 96762:978bc1ff43a7
branch: 3.4
parent: 96759:24ce32d76376
user: Benjamin Peterson <benjamin at python.org>
date: Thu Jul 02 16:58:22 2015 -0500
summary:
use correct __new__ method (closes #24552)
files:
Lib/test/pickletester.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py
--- a/Lib/test/pickletester.py
+++ b/Lib/test/pickletester.py
@@ -1043,7 +1043,7 @@
# Issue 24552
global SimpleNewObj
save = SimpleNewObj
- o = object.__new__(SimpleNewObj)
+ o = SimpleNewObj.__new__(SimpleNewObj)
b = self.dumps(o, 4)
try:
SimpleNewObj = 42
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list