Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Only catch exception from setrlimit on Cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
embray committed Oct 12, 2017
1 parent f050a34 commit 90507bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bin/sage-runtests
Expand Up @@ -109,7 +109,11 @@ if __name__ == "__main__":
try:
resource.setrlimit(resource.RLIMIT_AS, (memlimit, hard))
except ValueError:
pass
if sys.platform != 'cygwin':
# RLIMIT_AS is not currently supported on Cygwin so
# this will probably fail there:
# https://trac.sagemath.org/ticket/23979
raise

# Limit the number of OMP threads to 2 to save system resources
# See Trac #23892
Expand Down

0 comments on commit 90507bf

Please sign in to comment.