Update Python tests to not use flatstaticmethod access
Use Python class staticmethod syntax to access C++ static member functions, such as Klass.memberfunction, instead of Klass_memberfunction. Examples and test-suite changes in preparation for issue #2137.
This commit is contained in:
parent
7610997209
commit
cf8788c411
22 changed files with 52 additions and 74 deletions
|
|
@ -15,13 +15,13 @@ f = Foo(b=2, a=1)
|
|||
if f.foo(b=1, a=2) != 3:
|
||||
raise RuntimeError
|
||||
|
||||
if Foo_statfoo(b=2) != 3:
|
||||
if Foo.statfoo(b=2) != 3:
|
||||
raise RuntimeError
|
||||
|
||||
if f.efoo(b=2) != 3:
|
||||
raise RuntimeError
|
||||
|
||||
if Foo_sfoo(b=2) != 3:
|
||||
if Foo.sfoo(b=2) != 3:
|
||||
raise RuntimeError
|
||||
|
||||
|
||||
|
|
@ -31,13 +31,13 @@ b = BarInt(b=2, a=1)
|
|||
if b.bar(b=1, a=2) != 3:
|
||||
raise RuntimeError
|
||||
|
||||
if BarInt_statbar(b=2) != 3:
|
||||
if BarInt.statbar(b=2) != 3:
|
||||
raise RuntimeError
|
||||
|
||||
if b.ebar(b=2) != 3:
|
||||
raise RuntimeError
|
||||
|
||||
if BarInt_sbar(b=2) != 3:
|
||||
if BarInt.sbar(b=2) != 3:
|
||||
raise RuntimeError
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue