Patch #551960: Add check for setrlimit() support
authorJason Tishler <jason@tishler.net>
Thu, 12 Dec 2002 18:13:36 +0000 (18:13 +0000)
committerJason Tishler <jason@tishler.net>
Thu, 12 Dec 2002 18:13:36 +0000 (18:13 +0000)
commite4a070a3206809d069360c1a5d20541bf24d824b
treed73ba4a2452bd0e79702030f40950e65f8b23e5e
parent20b91358e5fd8042fbcaa4293fa37b7063fa77cf
Patch #551960: Add check for setrlimit() support

test_resource calls resource.setrlimit() to change the file size limits.
This fails on Cygwin, which supports setrlimit() and getrlimit(), just not
changing that particular setting. (The same would apply to any other
platform that has those functions but not that particular feature.)

Since getrlimit() works and setrlimit() can be used for other reasons, a
check for ValueError was added to that part of the test.
Lib/test/test_resource.py