From f1efc8f4094b52b95b5aeec1a422d46bf39f6458 Mon Sep 17 00:00:00 2001 From: Saugat Pachhai Date: Mon, 23 Nov 2020 15:07:15 +0545 Subject: [PATCH] tests: increase ulimit to 4096 (#4942) --- tests/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index 2f0b52793..40947ac98 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -12,7 +12,7 @@ if os.name == "nt": import win32file # pylint: disable=import-error - win32file._setmaxstdio(2048) + win32file._setmaxstdio(4096) # Workaround for two bugs: # @@ -41,7 +41,7 @@ if os.name == "nt": else: import resource - resource.setrlimit(resource.RLIMIT_NOFILE, (2048, 2048)) + resource.setrlimit(resource.RLIMIT_NOFILE, (4096, 4096)) nproc_soft, nproc_hard = resource.getrlimit(resource.RLIMIT_NPROC) resource.setrlimit(resource.RLIMIT_NPROC, (nproc_hard, nproc_hard))