summaryrefslogtreecommitdiffstats
path: root/xml/test_pywrap/test_prop3.py
diff options
context:
space:
mode:
Diffstat (limited to 'xml/test_pywrap/test_prop3.py')
-rw-r--r--xml/test_pywrap/test_prop3.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/xml/test_pywrap/test_prop3.py b/xml/test_pywrap/test_prop3.py
index 9d33b63..a082096 100644
--- a/xml/test_pywrap/test_prop3.py
+++ b/xml/test_pywrap/test_prop3.py
@@ -1,7 +1,5 @@
-import pcipywrap
-
-def read_from_register(value):
- return pcipywrap.get_property('/registers/fpga/reg1')
+def read_from_register(ctx, value):
+ return ctx.get_property('/registers/fpga/reg1')
-def write_to_register(value):
- pcipywrap.set_property(value, '/registers/fpga/reg1')
+def write_to_register(ctx, value):
+ ctx.set_property(value, '/registers/fpga/reg1')