diff options
author | Benoit Foucher <benoit@zeroc.com> | 2021-01-07 20:42:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-07 20:42:19 +0100 |
commit | eba3ea4801b3b643d4cb590174f2984562efe76f (patch) | |
tree | 0fcb195b663a473333a3570974260802d8309875 /python/test/Ice/asyncio/Client.py | |
parent | Use readline only when stdin is a tty (#1230) (diff) | |
download | ice-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-x | python/test/Ice/asyncio/Client.py | 20 |
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) |