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
|
|
@ -20,7 +20,7 @@ class li_boost_shared_ptr_runme:
|
|||
self.runtest()
|
||||
|
||||
# Expect 1 instance - the one global variable (GlobalValue)
|
||||
if (li_boost_shared_ptr.Klass_getTotal_count() != 1):
|
||||
if (li_boost_shared_ptr.Klass.getTotal_count() != 1):
|
||||
raise RuntimeError("Klass.total_count=%s" %
|
||||
li_boost_shared_ptr.Klass.getTotal_count())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue