summaryrefslogtreecommitdiff
path: root/python/test/Ice/asyncio/Client.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2021-01-07 20:42:19 +0100
committerGitHub <noreply@github.com>2021-01-07 20:42:19 +0100
commiteba3ea4801b3b643d4cb590174f2984562efe76f (patch)
tree0fcb195b663a473333a3570974260802d8309875 /python/test/Ice/asyncio/Client.py
parentUse readline only when stdin is a tty (#1230) (diff)
downloadice-eba3ea4801b3b643d4cb590174f2984562efe76f.tar.bz2
ice-eba3ea4801b3b643d4cb590174f2984562efe76f.tar.xz
ice-eba3ea4801b3b643d4cb590174f2984562efe76f.zip
Fixed Ice.wrap_future cancellation bug and added asyncio test (#1229)
Diffstat (limited to 'python/test/Ice/asyncio/Client.py')
-rwxr-xr-xpython/test/Ice/asyncio/Client.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/python/test/Ice/asyncio/Client.py b/python/test/Ice/asyncio/Client.py
new file mode 100755
index 00000000000..b63e85eb41c
--- /dev/null
+++ b/python/test/Ice/asyncio/Client.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+#
+# Copyright (c) ZeroC, Inc. All rights reserved.
+#
+
+import asyncio
+from TestHelper import TestHelper
+TestHelper.loadSlice("Test.ice")
+import AllTests
+
+
+class Client(TestHelper):
+
+ def run(self, args):
+
+ async def runAsync():
+ with self.initialize(properties=self.createTestProperties(args)) as communicator:
+ await AllTests.allTestsAsync(self, communicator)
+
+ asyncio.run(runAsync(), debug=True)