diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-07-02 21:58:22 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-07-02 21:58:22 (GMT) |
commit | d3a2a95125167564aed33286933dd224a1f47b7e (patch) | |
tree | 67d6585a3401196b6d9e414813ef2fadf004f3c4 | |
parent | 80f78a3efcd0836c4495a833fc24ef20d9ba19b2 (diff) | |
download | cpython-d3a2a95125167564aed33286933dd224a1f47b7e.zip cpython-d3a2a95125167564aed33286933dd224a1f47b7e.tar.gz cpython-d3a2a95125167564aed33286933dd224a1f47b7e.tar.bz2 |
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 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 |