Skip to content

Commit 63e713f

Browse files
authored
Fix a bug about wrong order of function arguments (#1495)
1 parent b4dc2ac commit 63e713f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/test_inheritance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def test_even_more_overriding(self):
397397
from IronPythonTest import BaseClass, MoreOverridding
398398
class Test(BaseClass):
399399
def __new__(cls):
400-
return super(cls, Test).__new__(cls, Width=20, Height=30)
400+
return super(Test, cls).__new__(cls, Width=20, Height=30)
401401

402402
a = Test()
403403
self.assertEqual(a.Width, 20)
@@ -1361,7 +1361,7 @@ def check(condition):
13611361

13621362
class C(object):
13631363
def __new__(cls):
1364-
x = super(cls, C)
1364+
x = super(C, cls)
13651365
check("<super" in str(x))
13661366
return x.__new__(cls)
13671367

0 commit comments

Comments
 (0)