Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d3a2a95

Browse files
committed
use correct __new__ method (closes #24552)
1 parent 80f78a3 commit d3a2a95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/pickletester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ def test_newobj_not_class(self):
10431043
# Issue 24552
10441044
global SimpleNewObj
10451045
save = SimpleNewObj
1046-
o = object.__new__(SimpleNewObj)
1046+
o = SimpleNewObj.__new__(SimpleNewObj)
10471047
b = self.dumps(o, 4)
10481048
try:
10491049
SimpleNewObj = 42

0 commit comments

Comments
 (0)