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): ...@@ -116,7 +116,7 @@ class TestFrontendXForwardedFor(ERP5InstanceTestCase):
pass pass
time.sleep(1) time.sleep(1)
else: else:
raise RuntimeError, 'caucased failed to start.' raise RuntimeError('caucased failed to start.')
cau_args = [ cau_args = [
caucase_path, caucase_path,
...@@ -145,7 +145,6 @@ class TestFrontendXForwardedFor(ERP5InstanceTestCase): ...@@ -145,7 +145,6 @@ class TestFrontendXForwardedFor(ERP5InstanceTestCase):
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
) )
result = caucase_process.communicate() result = caucase_process.communicate()
print result
csr_id = result[0].split()[0] csr_id = result[0].split()[0]
subprocess.check_call( subprocess.check_call(
...@@ -196,7 +195,7 @@ class TestFrontendXForwardedFor(ERP5InstanceTestCase): ...@@ -196,7 +195,7 @@ class TestFrontendXForwardedFor(ERP5InstanceTestCase):
else: else:
time.sleep(1) time.sleep(1)
else: else:
raise RuntimeError, 'getting service certificate failed.' raise RuntimeError('getting service certificate failed.')
# start a caucased and server certificate. # start a caucased and server certificate.
cls.backend_caucase_dir = tempfile.mkdtemp() cls.backend_caucase_dir = tempfile.mkdtemp()
...@@ -223,7 +222,7 @@ class TestFrontendXForwardedFor(ERP5InstanceTestCase): ...@@ -223,7 +222,7 @@ class TestFrontendXForwardedFor(ERP5InstanceTestCase):
pass pass
time.sleep(1) time.sleep(1)
else: else:
raise RuntimeError, 'caucased failed to start.' raise RuntimeError('caucased failed to start.')
super(TestFrontendXForwardedFor, cls).setUpClass() 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