From 5613ab6b47dbf1031d2d601695eccf593921c834 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Fri, 15 Nov 2019 17:38:03 +0100 Subject: [PATCH] orchestra/test: make syntax py3 compatible Signed-off-by: Kyr Shatskyy --- teuthology/orchestra/test/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/orchestra/test/util.py b/teuthology/orchestra/test/util.py index f693d40828..4aedc2ee32 100644 --- a/teuthology/orchestra/test/util.py +++ b/teuthology/orchestra/test/util.py @@ -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__ -- 2.39.5