summaryrefslogtreecommitdiff
path: root/py/test/Ice/operations/TestI.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/test/Ice/operations/TestI.py')
-rw-r--r--py/test/Ice/operations/TestI.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/py/test/Ice/operations/TestI.py b/py/test/Ice/operations/TestI.py
index 196cc1e39b2..816cea80ed5 100644
--- a/py/test/Ice/operations/TestI.py
+++ b/py/test/Ice/operations/TestI.py
@@ -48,10 +48,11 @@ class MyDerivedClassI(Test.MyDerivedClass):
return (p2, p1)
def opByteS(self, p1, p2, current=None):
- p3 = p1[0:]
+ # By default sequence<byte> maps to a string.
+ p3 = map(ord, p1)
p3.reverse()
- r = p1[0:]
- r.extend(p2)
+ r = map(ord, p1)
+ r.extend(map(ord, p2))
return (r, p3)
def opBoolS(self, p1, p2, current=None):