diff options
author | Dirk Mueller <dirk@dmllr.de> | 2013-04-22 03:42:48 +0200 |
---|---|---|
committer | Dirk Mueller <dirk@dmllr.de> | 2013-04-22 03:42:48 +0200 |
commit | 120ddeff7e1b8956fe35a7a39fae87ddcac8301c (patch) | |
tree | b4eb9b278beca16004e6b1825d8173783390540a /tests/unit/rpc | |
parent | 67767b3e8074e4b4a218d7649ef2297c124c342f (diff) | |
download | oslo-120ddeff7e1b8956fe35a7a39fae87ddcac8301c.tar.gz oslo-120ddeff7e1b8956fe35a7a39fae87ddcac8301c.tar.xz oslo-120ddeff7e1b8956fe35a7a39fae87ddcac8301c.zip |
Improve Python 3.x compatibility
Mechanical translation of deprecated constructs
to 3.x compatible variants.
Change-Id: I4988d0ac656903e0d0320aaa8361d4eeb774a0f9
Diffstat (limited to 'tests/unit/rpc')
-rw-r--r-- | tests/unit/rpc/test_common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/rpc/test_common.py b/tests/unit/rpc/test_common.py index 755e2a4..2248a8f 100644 --- a/tests/unit/rpc/test_common.py +++ b/tests/unit/rpc/test_common.py @@ -213,7 +213,7 @@ class RpcCommonTestCase(test_utils.BaseTestCase): raise ValueError() except Exception: raise rpc_common.ClientException() - except rpc_common.ClientException, e: + except rpc_common.ClientException as e: pass self.assertTrue(isinstance(e, rpc_common.ClientException)) @@ -226,7 +226,7 @@ class RpcCommonTestCase(test_utils.BaseTestCase): e = None try: rpc_common.catch_client_exception([ValueError], naughty, 'a') - except rpc_common.ClientException, e: + except rpc_common.ClientException as e: pass self.assertTrue(isinstance(e, rpc_common.ClientException)) |