Commit bc249dc0 authored by Jérome Perrin's avatar Jérome Perrin

software/erp5/test: use python3 compatible syntax already

parent fe756a14
......@@ -116,7 +116,7 @@ class TestFrontendXForwardedFor(ERP5InstanceTestCase):
pass
time.sleep(1)
else:
raise RuntimeError, 'caucased failed to start.'
raise RuntimeError('caucased failed to start.')
cau_args = [
caucase_path,
......@@ -145,7 +145,6 @@ class TestFrontendXForwardedFor(ERP5InstanceTestCase):
stderr=subprocess.STDOUT,
)
result = caucase_process.communicate()
print result
csr_id = result[0].split()[0]
subprocess.check_call(
......@@ -196,7 +195,7 @@ class TestFrontendXForwardedFor(ERP5InstanceTestCase):
else:
time.sleep(1)
else:
raise RuntimeError, 'getting service certificate failed.'
raise RuntimeError('getting service certificate failed.')
# start a caucased and server certificate.
cls.backend_caucase_dir = tempfile.mkdtemp()
......@@ -223,7 +222,7 @@ class TestFrontendXForwardedFor(ERP5InstanceTestCase):
pass
time.sleep(1)
else:
raise RuntimeError, 'caucased failed to start.'
raise RuntimeError('caucased failed to start.')
super(TestFrontendXForwardedFor, cls).setUpClass()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment