diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-07-02 16:58:22 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-07-02 16:58:22 -0500 |
commit | d3a2a95125167564aed33286933dd224a1f47b7e (patch) | |
tree | 67d6585a3401196b6d9e414813ef2fadf004f3c4 | |
parent | 80f78a3efcd0836c4495a833fc24ef20d9ba19b2 (diff) | |
download | cpython-git-d3a2a95125167564aed33286933dd224a1f47b7e.tar.gz |
use correct __new__ method (closes #24552)
-rw-r--r-- | Lib/test/pickletester.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 1682ab151d..af34d23d37 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 |