summaryrefslogtreecommitdiff
path: root/test/test-client.py
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2018-01-29 10:30:43 +0000
committerSimon McVittie <smcv@collabora.com>2018-01-29 10:30:43 +0000
commit2d5ccd0cb9e580732d0abfbf8a97b1bf779d2a9e (patch)
treedd97ae7b215133dc0619ace7bdd2f446bd703eab /test/test-client.py
parent05ef07b9b5a6ae4b53dc80728563d2455fe7e24f (diff)
downloaddbus-python-2d5ccd0cb9e580732d0abfbf8a97b1bf779d2a9e.tar.gz
Avoid using async keyword
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'test/test-client.py')
-rwxr-xr-xtest/test-client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-client.py b/test/test-client.py
index 913a851..5a177b7 100755
--- a/test/test-client.py
+++ b/test/test-client.py
@@ -334,12 +334,12 @@ class TestDBusBindings(unittest.TestCase):
def testAsyncMethods(self):
print("\n********* Testing asynchronous method implementation *******")
- for async in (True, False):
+ for async_ in (True, False):
for fail in (True, False):
try:
val = ('a', 1, False, [1,2], {1:2})
- print("calling AsynchronousMethod with %s %s %s" % (async, fail, val))
- ret = self.iface.AsynchronousMethod(async, fail, val)
+ print("calling AsynchronousMethod with %s %s %s" % (async_, fail, val))
+ ret = self.iface.AsynchronousMethod(async_, fail, val)
except Exception as e:
self.assertTrue(fail, '%s: %s' % (e.__class__, e))
print("Expected failure: %s: %s" % (e.__class__, e))