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))