summaryrefslogtreecommitdiffstats
path: root/xml
diff options
context:
space:
mode:
Diffstat (limited to 'xml')
-rw-r--r--xml/scripts/test_script.py10
-rw-r--r--xml/test/test_prop_mt.py2
2 files changed, 10 insertions, 2 deletions
diff --git a/xml/scripts/test_script.py b/xml/scripts/test_script.py
index 46a5b25..8f236e9 100644
--- a/xml/scripts/test_script.py
+++ b/xml/scripts/test_script.py
@@ -1,2 +1,10 @@
+import sys
+if sys.version_info >= (3,0):
+ import binascii
+
def run(ctx, inpt):
- return bytearray('111')
+ if sys.version_info >= (3,0):
+ return binascii.a2b_uu('111')
+ else:
+ return bytearray('111')
+
diff --git a/xml/test/test_prop_mt.py b/xml/test/test_prop_mt.py
index a5e5fab..224a80c 100644
--- a/xml/test/test_prop_mt.py
+++ b/xml/test/test_prop_mt.py
@@ -10,7 +10,7 @@ def read_from_register(ctx, value):
read_from_register.counter += 1
for i in range (0, 5):
time.sleep(0.1)
- print cur
+ print(cur)
out = ctx.get_property('/test/prop3') / 2
ctx.unlock('lock12')