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
|
|
@ -37,7 +37,7 @@ class MyExample3(director_abstract.Example3_i):
|
|||
return b
|
||||
|
||||
me1 = MyExample1()
|
||||
if director_abstract.Example1_get_color(me1, 1, 2, 3) != 1:
|
||||
if director_abstract.Example1.get_color(me1, 1, 2, 3) != 1:
|
||||
raise RuntimeError
|
||||
|
||||
me2 = MyExample2(1, 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue