Skip to content

Commit

Permalink
tests: increase ulimit to 4096 (iterative#4942)
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry authored Nov 23, 2020
1 parent 1a2c91e commit f1efc8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import win32file # pylint: disable=import-error

win32file._setmaxstdio(2048)
win32file._setmaxstdio(4096)

# Workaround for two bugs:
#
Expand Down Expand Up @@ -41,7 +41,7 @@ def noop():
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))

0 comments on commit f1efc8f

Please sign in to comment.