]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
orchestra/test: make syntax py3 compatible
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Fri, 15 Nov 2019 16:38:03 +0000 (17:38 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Fri, 15 Nov 2019 17:37:07 +0000 (18:37 +0100)
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
teuthology/orchestra/test/util.py

index f693d4082804e4f17866ebfcef0f0cd9972d1392..4aedc2ee32485465f6bcae211b073cceaa1fa9c0 100644 (file)
@@ -4,7 +4,7 @@ def assert_raises(excClass, callableObj, *args, **kwargs):
     """
     try:
         callableObj(*args, **kwargs)
-    except excClass, e:
+    except excClass as e:
         return e
     else:
         if hasattr(excClass,'__name__'): excName = excClass.__name__