From ce81d96a0fb64d7754643da903e927f90a4886fc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Thu, 17 Apr 2014 11:54:20 +0200
Subject: [PATCH] retrieve url/port from ZopeTestCase utils

---
 product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py b/product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
index 9bd1edd9f1..39c98727b2 100644
--- a/product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
+++ b/product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
@@ -35,6 +35,8 @@ import subprocess
 import shutil
 import transaction
 from ZPublisher.HTTPResponse import HTTPResponse
+from Testing import ZopeTestCase
+
 from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase, \
                                                _getConversionServerDict
 
@@ -370,7 +372,8 @@ class ERP5TypeFunctionalTestCase(ERP5TypeTestCase):
     self.setSystemPreference()
     self.portal.portal_tests.TestTool_cleanUpTestResults()
     self.tic()
-    self.runner = FunctionalTestRunner(self.serverhost, self.serverport,
+    utils = ZopeTestCase.utils
+    self.runner = FunctionalTestRunner(utils._Z2HOST, utils._Z2PORT,
                                 self.portal, self.run_only, self.use_phanthom)
 
   def setSystemPreference(self):
-- 
2.30.9