summaryrefslogtreecommitdiff
path: root/python/test/Ice/operations/Twoways.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-08-14 20:02:53 +0200
committerJose <jose@zeroc.com>2018-08-14 20:03:24 +0200
commit7d722e7eb41abd0147458c72285f6fea706c980e (patch)
tree3d7d1884d6fccfd8a44ab9dabb8d833813aee846 /python/test/Ice/operations/Twoways.py
parentFixed icehashpassword deprecation warning with python debug (diff)
downloadice-7d722e7eb41abd0147458c72285f6fea706c980e.tar.bz2
ice-7d722e7eb41abd0147458c72285f6fea706c980e.tar.xz
ice-7d722e7eb41abd0147458c72285f6fea706c980e.zip
Fixes to allow run JavaScript and Python tests with workers
Diffstat (limited to 'python/test/Ice/operations/Twoways.py')
-rw-r--r--python/test/Ice/operations/Twoways.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/test/Ice/operations/Twoways.py b/python/test/Ice/operations/Twoways.py
index a441ee9ef6a..5eb179f33e9 100644
--- a/python/test/Ice/operations/Twoways.py
+++ b/python/test/Ice/operations/Twoways.py
@@ -14,8 +14,9 @@ def test(b):
if not b:
raise RuntimeError('test assertion failed')
-def twoways(communicator, p):
+def twoways(helper, p):
+ communicator = helper.communicator()
literals = p.opStringLiterals()
test(Test.s0 == "\\")
@@ -1341,7 +1342,7 @@ def twoways(communicator, p):
ctx = {'one': 'ONE', 'two': 'TWO', 'three': 'THREE'}
- p1 = Test.MyClassPrx.uncheckedCast(ic.stringToProxy('test:default -p 12010'))
+ p1 = Test.MyClassPrx.uncheckedCast(ic.stringToProxy('test:{0}'.format(helper.getTestEndpoint())))
ic.getImplicitContext().setContext(ctx)
test(ic.getImplicitContext().getContext() == ctx)