提交 9131af9a 编写于 作者: X Xu Han

[qemu] Python 3: Update raise

Signed-off-by: NXu Han <xuhan@redhat.com>
上级 e3f099bd
......@@ -13,6 +13,7 @@ import os
import sys
import tempfile
import random
import six
import aexpect
......@@ -618,7 +619,7 @@ def run(test, params, env):
if exc_info is None:
raise
if exc_info:
raise exc_info[0], exc_info[1], exc_info[2]
six.reraise(exc_info[0], exc_info[1], exc_info[2])
return ret
class test_singlehost(MiniSubtest):
......
......@@ -3,6 +3,7 @@ import time
import os
import sys
import re
import six
import aexpect
......@@ -97,7 +98,7 @@ def run(test, params, env):
if exc_info is None:
raise
if exc_info:
raise exc_info[0], exc_info[1], exc_info[2]
six.reraise(exc_info[0], exc_info[1], exc_info[2])
return ret
class test_singlehost(MiniSubtest):
......
......@@ -3,6 +3,7 @@ import os
import time
import re
import sys
import six
import aexpect
......@@ -82,7 +83,7 @@ def run(test, params, env):
if exc_info is None:
raise
if exc_info:
raise exc_info[0], exc_info[1], exc_info[2]
six.reraise(exc_info[0], exc_info[1], exc_info[2])
return ret
def control_service(session, service, init_service, action, timeout=60):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册