diff options
Diffstat (limited to 'opnfv_testapi/tests')
-rw-r--r-- | opnfv_testapi/tests/unit/fake_pymongo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/opnfv_testapi/tests/unit/fake_pymongo.py b/opnfv_testapi/tests/unit/fake_pymongo.py index 28ea966..c1b54d7 100644 --- a/opnfv_testapi/tests/unit/fake_pymongo.py +++ b/opnfv_testapi/tests/unit/fake_pymongo.py @@ -13,9 +13,9 @@ from concurrent.futures import ThreadPoolExecutor 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 class MemCursor(object): |