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
|
|
@ -29,10 +29,10 @@ if d.get() != dr.get():
|
|||
#
|
||||
# 'narrowing' also works
|
||||
#
|
||||
ddc = virtual_poly.NDouble_narrow(d.nnumber())
|
||||
ddc = virtual_poly.NDouble.narrow(d.nnumber())
|
||||
if d.get() != ddc.get():
|
||||
raise RuntimeError
|
||||
|
||||
dic = virtual_poly.NInt_narrow(i.nnumber())
|
||||
dic = virtual_poly.NInt.narrow(i.nnumber())
|
||||
if i.get() != dic.get():
|
||||
raise RuntimeError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue