mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
15 lines
351 B
Python
15 lines
351 B
Python
import os
|
|
|
|
# Increasing fd ulimit for tests
|
|
if os.name == "nt":
|
|
import win32file
|
|
|
|
win32file._setmaxstdio(2048)
|
|
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))
|