From 70737dc32a5bfca180dafc05f7b6ba41a5fb42fc Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sun, 28 Mar 2021 19:07:15 +0200 Subject: Allow verifying testapi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It allows running tox vs py27 (epydoc forces py27). It also fixes 2 indent issues. Signed-off-by: Cédric Ollivier Change-Id: I63e28089a56147b359a72eb330b5badbc6fc7d7f --- testapi/opnfv_testapi/tests/unit/executor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testapi/opnfv_testapi/tests/unit/executor.py') diff --git a/testapi/opnfv_testapi/tests/unit/executor.py b/testapi/opnfv_testapi/tests/unit/executor.py index 5a8d688..7c8cb8a 100644 --- a/testapi/opnfv_testapi/tests/unit/executor.py +++ b/testapi/opnfv_testapi/tests/unit/executor.py @@ -18,9 +18,9 @@ O_get_secure_cookie = ( def thread_execute(method, *args, **kwargs): - with ThreadPoolExecutor(max_workers=2) as executor: - result = executor.submit(method, *args, **kwargs) - return result + with ThreadPoolExecutor(max_workers=2) as executor: + result = executor.submit(method, *args, **kwargs) + return result def mock_invalid_lfid(): -- cgit 1.2.3-korg