From a2fb7da23d60dc2835fe4528a28be71fe584a212 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Mon, 4 Feb 2019 03:09:21 +0200 Subject: [PATCH] test: set maximum RLIMIT_NPROC Signed-off-by: Ruslan Kuprieiev --- tests/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/__init__.py b/tests/__init__.py index 25ff0c906..6b7358582 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -9,3 +9,6 @@ else: import resource resource.setrlimit(resource.RLIMIT_NOFILE, (2048, 2048)) + + nproc_soft, nproc_hard = resource.getrlimit(resource.RLIMIT_NPROC) + resource.setrlimit(resource.RLIMIT_NPROC, (nproc_hard, nproc_hard))