tests: increase ulimit to 4096 (#4942)

This commit is contained in:
Saugat Pachhai
2020-11-23 11:22:15 +02:00
committed by GitHub
parent 1a2c91eb5a
commit f1efc8f409
+2 -2
View File
@@ -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))