Skip to content

Commit

Permalink
conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Nov 22, 2024
1 parent 400d2fc commit faf57c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@


current_process = psutil.Process()
if platform.system() == 'Windows':
if platform.system() == 'Linux':
(max_open_files_limit_soft, max_open_files_limit_hard) = current_process.rlimit(psutil.RLIMIT_NOFILE)
else:
# https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/setmaxstdio?view=vs-2019
(max_open_files_limit_soft, max_open_files_limit_hard) = (510, 512) # TODO: any way on Win?
else:
(max_open_files_limit_soft, max_open_files_limit_hard) = current_process.rlimit(psutil.RLIMIT_NOFILE)


def system_resources_usage():
Expand Down

0 comments on commit faf57c2

Please sign in to comment.