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
|
|
@ -1,11 +1,11 @@
|
|||
from li_factory import *
|
||||
|
||||
circle = Geometry_create(Geometry.CIRCLE)
|
||||
circle = Geometry.create(Geometry.CIRCLE)
|
||||
r = circle.radius()
|
||||
if (r != 1.5):
|
||||
raise RuntimeError
|
||||
|
||||
point = Geometry_create(Geometry.POINT)
|
||||
point = Geometry.create(Geometry.POINT)
|
||||
w = point.width()
|
||||
if (w != 1.0):
|
||||
raise RuntimeError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue