Import LinuxCNC source tree
This commit is contained in:
15
tests/interp/python-self/test.ngc
Normal file
15
tests/interp/python-self/test.ngc
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
;py,import interpreter
|
||||
|
||||
; pass value to Python and store in a self.attribute
|
||||
o<retainparam1> call [25.0]
|
||||
|
||||
; now check it's still there
|
||||
o<checkparam1_retained> call
|
||||
|
||||
; since 'self' is aliased to 'interpreter.this'
|
||||
; the same value must show up here too:
|
||||
|
||||
;py,assert interpreter.this.param1 == 25.0
|
||||
M2
|
||||
|
||||
Reference in New Issue
Block a user